Show new settings

This commit is contained in:
Hillel Coren 2023-01-12 13:41:41 +02:00
parent 685834beb5
commit 36a028ec7c
3 changed files with 21 additions and 3 deletions

View File

@ -116,7 +116,7 @@ class _ListFilterState extends State<ListFilter> {
children: [
if (widget.entityType == EntityType.settings)
Padding(
padding: const EdgeInsets.only(right: 16),
padding: const EdgeInsets.only(right: 10),
child: IconButton(
padding: const EdgeInsets.only(right: 8),
onPressed: () {

View File

@ -160,6 +160,24 @@ class ListScaffold extends StatelessWidget {
if (!isSettings &&
(isMobile(context) || !state.prefState.isHistoryVisible))
Builder(builder: (context) {
return Padding(
padding: const EdgeInsets.only(right: 8),
child: IconButton(
padding: const EdgeInsets.only(right: 8),
onPressed: () {
if (isMobile(context) ||
state.prefState.isHistoryFloated) {
Scaffold.of(context).openEndDrawer();
} else {
store.dispatch(UpdateUserPreferences(
sidebar: AppSidebar.history));
}
},
icon: Icon(
Icons.history,
color: state.headerTextColor,
)),
);
return InkWell(
onTap: () {
if (isMobile(context) ||
@ -171,7 +189,7 @@ class ListScaffold extends StatelessWidget {
}
},
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 12),
padding: const EdgeInsets.only(right: 20, left: 6),
child: Icon(
Icons.history,
color: state.headerTextColor,

View File

@ -340,7 +340,7 @@ class SettingsSearch extends StatelessWidget {
'quote_footer',
'credit_terms',
'credit_footer',
'use_quote_terms',
'use_quote_terms#2022-05-17',
],
[
'default_documents',