Dashboard

This commit is contained in:
Hillel Coren 2020-07-22 12:35:20 +03:00
parent 01e291df56
commit a96edf8c64
3 changed files with 10 additions and 10 deletions

View File

@ -1143,8 +1143,8 @@ void handleEntitiesActions(
void selectEntity({ void selectEntity({
@required BuildContext context, @required BuildContext context,
@required BaseEntity entity, @required BaseEntity entity,
bool longPress, bool longPress = false,
bool forceView, bool forceView = false,
}) { }) {
final store = StoreProvider.of<AppState>(context); final store = StoreProvider.of<AppState>(context);
final state = store.state; final state = store.state;

View File

@ -207,7 +207,7 @@ class _QuoteSidebar extends StatelessWidget {
}, },
separatorBuilder: (context, index) => ListDivider(), separatorBuilder: (context, index) => ListDivider(),
), ),
label2: localization.pastDueInvoices + label2: localization.expiredQuotes +
(expriedQuotes.isNotEmpty ? ' (${expriedQuotes.length})' : ''), (expriedQuotes.isNotEmpty ? ' (${expriedQuotes.length})' : ''),
list2: expriedQuotes.isEmpty list2: expriedQuotes.isEmpty
? null ? null
@ -224,7 +224,7 @@ class _QuoteSidebar extends StatelessWidget {
), ),
label3: (selectedIds ?? <String>[]).isEmpty label3: (selectedIds ?? <String>[]).isEmpty
? null ? null
: localization.selectedInvoices + ' (${selectedIds.length})', : localization.selectedQuotes + ' (${selectedIds.length})',
list3: (selectedIds ?? <String>[]).isEmpty list3: (selectedIds ?? <String>[]).isEmpty
? null ? null
: ListView.separated( : ListView.separated(
@ -319,8 +319,8 @@ class _DashboardSidebar extends StatelessWidget {
child: Row( child: Row(
children: [ children: [
Expanded( Expanded(
child: Text(label3 ?? '', child:
style: textTheme.bodyText2)), Text(label3 ?? '', style: textTheme.bodyText2)),
IconButton( IconButton(
visualDensity: VisualDensity.compact, visualDensity: VisualDensity.compact,
icon: Icon(Icons.clear), icon: Icon(Icons.clear),
@ -333,8 +333,8 @@ class _DashboardSidebar extends StatelessWidget {
) )
], ],
), ),
padding: const EdgeInsets.symmetric( padding:
horizontal: 16, vertical: 8), const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
width: double.infinity, width: double.infinity,
), ),
), ),

View File

@ -77,7 +77,7 @@ class QuoteListItem extends StatelessWidget {
children: <Widget>[ children: <Widget>[
Padding( Padding(
padding: const EdgeInsets.only(right: 16), padding: const EdgeInsets.only(right: 16),
child: showCheckbox child: isInMultiselect
? IgnorePointer( ? IgnorePointer(
ignoring: listUIState.isInMultiselect(), ignoring: listUIState.isInMultiselect(),
child: Checkbox( child: Checkbox(
@ -160,7 +160,7 @@ class QuoteListItem extends StatelessWidget {
onTap: () => selectEntity(entity: quote, context: context), onTap: () => selectEntity(entity: quote, context: context),
onLongPress: () => selectEntity( onLongPress: () => selectEntity(
entity: quote, context: context, longPress: true), entity: quote, context: context, longPress: true),
leading: showCheckbox leading: isInMultiselect
? IgnorePointer( ? IgnorePointer(
ignoring: listUIState.isInMultiselect(), ignoring: listUIState.isInMultiselect(),
child: Checkbox( child: Checkbox(