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

View File

@ -257,7 +257,7 @@ Reducer<bool> showKanbanReducer = combineReducers([
Reducer<bool> isFilterVisibleReducer = combineReducers([ Reducer<bool> isFilterVisibleReducer = combineReducers([
TypedReducer<bool, UpdateUserPreferences>((value, action) { 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, message: localization.hideSidebar,
child: InkWell( child: InkWell(
onTap: () => store.dispatch( onTap: () => store.dispatch(
UpdateUserPreferences(showFilterSidebar: false)), UpdateUserPreferences(isFilterVisible: false)),
child: Padding( child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8), padding: const EdgeInsets.symmetric(horizontal: 8),
child: Icon(Icons.chevron_left), child: Icon(Icons.chevron_left),

View File

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