Adjust UI

This commit is contained in:
Hillel Coren 2021-09-27 11:15:41 +03:00
parent bb68d3c223
commit 6de42562a2
4 changed files with 5 additions and 5 deletions

View File

@ -127,7 +127,7 @@ class UpdateUserPreferences implements PersistPrefs {
this.menuMode,
this.historyMode,
this.showKanban,
this.showFilterSidebar,
this.isFilterVisible,
this.rowsPerPage,
this.colorTheme,
this.customColors,
@ -143,7 +143,7 @@ class UpdateUserPreferences implements PersistPrefs {
final bool longPressSelectionIsDefault;
final bool requireAuthentication;
final bool isPreviewVisible;
final bool showFilterSidebar;
final bool isFilterVisible;
final bool showKanban;
final String accentColor;
final int rowsPerPage;

View File

@ -257,7 +257,7 @@ Reducer<bool> showKanbanReducer = combineReducers([
Reducer<bool> isFilterVisibleReducer = combineReducers([
TypedReducer<bool, UpdateUserPreferences>((value, action) {
return action.showFilterSidebar ?? value;
return action.isFilterVisible ?? value;
}),
]);

View File

@ -88,7 +88,7 @@ class BottomButtons extends StatelessWidget {
message: localization.hideSidebar,
child: InkWell(
onTap: () => store.dispatch(
UpdateUserPreferences(showFilterSidebar: false)),
UpdateUserPreferences(isFilterVisible: false)),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8),
child: Icon(Icons.chevron_left),

View File

@ -59,7 +59,7 @@ class EntityTopFilter extends StatelessWidget {
InkWell(
onTap: () {
store.dispatch(UpdateUserPreferences(
showFilterSidebar: !prefState.isFilterVisible));
isFilterVisible: !prefState.isFilterVisible));
},
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,