Datatables

This commit is contained in:
Hillel Coren 2020-01-09 23:08:55 +02:00
parent b3f0dc3e87
commit c30d34ffa3
3 changed files with 18 additions and 5 deletions

View File

@ -283,11 +283,21 @@ class _AppBottomBarState extends State<AppBottomBar> {
final localization = AppLocalization.of(context);
final prefState = store.state.prefState;
final isList = prefState.moduleLayout == ModuleLayout.list;
final listState = state.getListState(widget.entityType);
return BottomAppBar(
shape: CircularNotchedRectangle(),
child: Row(
children: <Widget>[
IconButton(
tooltip: localization.multiselect,
icon: Icon(listState.isInMultiselect()
? Icons.check_box_outline_blank
: Icons.check_box),
onPressed: () {
//
},
),
IconButton(
tooltip: localization.switchListTable,
icon: Icon(isList ? Icons.table_chart : Icons.view_list),

View File

@ -352,20 +352,20 @@ class SidebarFooter extends StatelessWidget {
icon: Icon(Icons.mail),
onPressed: () => _showContactUs(context),
),
IconButton(
icon: Icon(Icons.help_outline),
onPressed: () => launch('https://docs.invoiceninja.com'),
),
IconButton(
icon: Icon(Icons.forum),
onPressed: () =>
launch('https://www.invoiceninja.com/forums/forum/support'),
),
IconButton(
icon: Icon(Icons.help_outline),
onPressed: () => launch('https://docs.invoiceninja.com'),
),
IconButton(
icon: Icon(Icons.info_outline),
onPressed: () => _showAbout(context),
),
if (kDebugMode)
if (false && kDebugMode)
IconButton(
icon: Icon(Icons.memory),
onPressed: () => showDialog<StateInspector>(

View File

@ -14,6 +14,7 @@ abstract class LocaleCodeAware {
mixin LocalizationsProvider on LocaleCodeAware {
static final Map<String, Map<String, String>> _localizedValues = {
'en': {
'multiselect': 'Multiselect',
'entity_state': 'State',
'verify_password': 'Verify Password',
'applied': 'Applied',
@ -15936,6 +15937,8 @@ mixin LocalizationsProvider on LocaleCodeAware {
String get entityState => _localizedValues[localeCode]['entity_state'];
String get multiselect => _localizedValues[localeCode]['multiselect'];
String lookup(String key) {
final lookupKey = toSnakeCase(key);
return _localizedValues[localeCode][lookupKey] ??