From 4b29fa2b0f70267779eb8303c9a944debfeb1bd9 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 6 Nov 2023 17:59:11 +0200 Subject: [PATCH] Design template changes --- lib/ui/design/edit/design_edit.dart | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/ui/design/edit/design_edit.dart b/lib/ui/design/edit/design_edit.dart index d0bc56351..ff677a8f0 100644 --- a/lib/ui/design/edit/design_edit.dart +++ b/lib/ui/design/edit/design_edit.dart @@ -449,6 +449,7 @@ class _DesignSettingsState extends State { final localization = AppLocalization.of(context)!; return ScrollableListView( + primary: true, children: [ FormCard( children: [ @@ -466,9 +467,16 @@ class _DesignSettingsState extends State { _selectedDesign = value; }, initialValue: _selectedDesign?.id), + SizedBox(height: 16), + SwitchListTile( + activeColor: Theme.of(context).colorScheme.secondary, + title: Text(localization.template), + //subtitle: Text(localization.draftModeHelp), + value: widget.draftMode, + onChanged: widget.isLoading ? null : widget.onDraftModeChanged, + ), // TODO remove this once browser supported on all platforms - if (!kReleaseMode || kIsWeb || isMobileOS()) ...[ - SizedBox(height: 16), + if (!kReleaseMode || kIsWeb || isMobileOS()) SwitchListTile( activeColor: Theme.of(context).colorScheme.secondary, title: Text(localization.draftMode), @@ -476,7 +484,6 @@ class _DesignSettingsState extends State { value: widget.draftMode, onChanged: widget.isLoading ? null : widget.onDraftModeChanged, ), - ] ], ), Padding(