Adjust UI
This commit is contained in:
parent
9f159ffe3b
commit
fdfeb7be39
|
|
@ -47,7 +47,6 @@ class DeviceSettingsVM {
|
||||||
@required this.onHistoryModeChanged,
|
@required this.onHistoryModeChanged,
|
||||||
@required this.onColorThemeChanged,
|
@required this.onColorThemeChanged,
|
||||||
@required this.onRowsPerPageChanged,
|
@required this.onRowsPerPageChanged,
|
||||||
@required this.onPreviewSidebarChanged,
|
|
||||||
@required this.onCustomColorsChanged,
|
@required this.onCustomColorsChanged,
|
||||||
@required this.onPersistDataChanged,
|
@required this.onPersistDataChanged,
|
||||||
});
|
});
|
||||||
|
|
@ -96,9 +95,6 @@ class DeviceSettingsVM {
|
||||||
store.dispatch(UpdateUserPreferences(colorTheme: value));
|
store.dispatch(UpdateUserPreferences(colorTheme: value));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onPreviewSidebarChanged: (context, value) {
|
|
||||||
store.dispatch(UpdateUserPreferences(isPreviewEnabled: value));
|
|
||||||
},
|
|
||||||
onRowsPerPageChanged: (context, value) {
|
onRowsPerPageChanged: (context, value) {
|
||||||
store.dispatch(UpdateUserPreferences(rowsPerPage: value));
|
store.dispatch(UpdateUserPreferences(rowsPerPage: value));
|
||||||
},
|
},
|
||||||
|
|
@ -164,7 +160,6 @@ class DeviceSettingsVM {
|
||||||
final Function(BuildContext) onLogoutTap;
|
final Function(BuildContext) onLogoutTap;
|
||||||
final Function(BuildContext, bool) onDarkModeChanged;
|
final Function(BuildContext, bool) onDarkModeChanged;
|
||||||
final Function(BuildContext, BuiltMap<String, String>) onCustomColorsChanged;
|
final Function(BuildContext, BuiltMap<String, String>) onCustomColorsChanged;
|
||||||
final Function(BuildContext, bool) onPreviewSidebarChanged;
|
|
||||||
final Function(BuildContext, AppLayout) onLayoutChanged;
|
final Function(BuildContext, AppLayout) onLayoutChanged;
|
||||||
final Function(BuildContext, AppSidebarMode) onMenuModeChanged;
|
final Function(BuildContext, AppSidebarMode) onMenuModeChanged;
|
||||||
final Function(BuildContext, AppSidebarMode) onHistoryModeChanged;
|
final Function(BuildContext, AppSidebarMode) onHistoryModeChanged;
|
||||||
|
|
|
||||||
|
|
@ -285,10 +285,6 @@ void handleStubAction(
|
||||||
case EntityAction.edit:
|
case EntityAction.edit:
|
||||||
editEntity(context: context, entity: stub);
|
editEntity(context: context, entity: stub);
|
||||||
break;
|
break;
|
||||||
case EntityAction.preview:
|
|
||||||
store.dispatch(UpdateUserPreferences(isPreviewEnabled: true));
|
|
||||||
viewEntity(entity: stub);
|
|
||||||
break;
|
|
||||||
case EntityAction.restore:
|
case EntityAction.restore:
|
||||||
store.dispatch(RestoreStubsRequest(
|
store.dispatch(RestoreStubsRequest(
|
||||||
snackBarCompleter<Null>(context, localization.restoredStub), stubIds));
|
snackBarCompleter<Null>(context, localization.restoredStub), stubIds));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue