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({
@required BuildContext context,
@required BaseEntity entity,
bool longPress,
bool forceView,
bool longPress = false,
bool forceView = false,
}) {
final store = StoreProvider.of<AppState>(context);
final state = store.state;

View File

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

View File

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