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