This commit is contained in:
@@ -27,6 +27,7 @@ class _EditSettingsScreenState extends State<EditSettingsScreen>
|
|||||||
return AppScaffold(
|
return AppScaffold(
|
||||||
title: widget.title,
|
title: widget.title,
|
||||||
showBack: true,
|
showBack: true,
|
||||||
|
showUISettings: true,
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: FutureBuilder<Map<String, dynamic>>(
|
child: FutureBuilder<Map<String, dynamic>>(
|
||||||
|
@@ -15,6 +15,7 @@ class AppScaffold extends StatelessWidget {
|
|||||||
this.advancedWidget,
|
this.advancedWidget,
|
||||||
this.floatingActionButton,
|
this.floatingActionButton,
|
||||||
this.showBack = false,
|
this.showBack = false,
|
||||||
|
this.showUISettings = false,
|
||||||
});
|
});
|
||||||
|
|
||||||
final List<Widget> children;
|
final List<Widget> children;
|
||||||
@@ -22,6 +23,7 @@ class AppScaffold extends StatelessWidget {
|
|||||||
final Widget? advancedWidget;
|
final Widget? advancedWidget;
|
||||||
final Widget? floatingActionButton;
|
final Widget? floatingActionButton;
|
||||||
final bool showBack;
|
final bool showBack;
|
||||||
|
final bool showUISettings;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
@@ -133,7 +135,7 @@ class AppScaffold extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: constants.padding),
|
const SizedBox(width: constants.padding),
|
||||||
if (!showBack) ...[
|
if (!showBack || showUISettings) ...[
|
||||||
const Text("Animations"),
|
const Text("Animations"),
|
||||||
Consumer<Settings>(
|
Consumer<Settings>(
|
||||||
builder: (context, settings, _) => IconButton(
|
builder: (context, settings, _) => IconButton(
|
||||||
@@ -165,6 +167,10 @@ class AppScaffold extends StatelessWidget {
|
|||||||
settings.setAutoStart(!settings.autoStart),
|
settings.setAutoStart(!settings.autoStart),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
if (showUISettings)
|
||||||
|
const SizedBox(width: constants.padding),
|
||||||
|
],
|
||||||
|
if (!showBack) ...[
|
||||||
IconButton(
|
IconButton(
|
||||||
tooltip: 'Settings',
|
tooltip: 'Settings',
|
||||||
icon: const Icon(Icons.settings),
|
icon: const Icon(Icons.settings),
|
||||||
|
Reference in New Issue
Block a user