Design template changes

This commit is contained in:
Hillel Coren 2023-11-06 17:59:11 +02:00
parent adcd5b6771
commit 4b29fa2b0f
1 changed files with 10 additions and 3 deletions

View File

@ -449,6 +449,7 @@ class _DesignSettingsState extends State<DesignSettings> {
final localization = AppLocalization.of(context)!; final localization = AppLocalization.of(context)!;
return ScrollableListView( return ScrollableListView(
primary: true,
children: <Widget>[ children: <Widget>[
FormCard( FormCard(
children: <Widget>[ children: <Widget>[
@ -466,9 +467,16 @@ class _DesignSettingsState extends State<DesignSettings> {
_selectedDesign = value; _selectedDesign = value;
}, },
initialValue: _selectedDesign?.id), 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 // TODO remove this once browser supported on all platforms
if (!kReleaseMode || kIsWeb || isMobileOS()) ...[ if (!kReleaseMode || kIsWeb || isMobileOS())
SizedBox(height: 16),
SwitchListTile( SwitchListTile(
activeColor: Theme.of(context).colorScheme.secondary, activeColor: Theme.of(context).colorScheme.secondary,
title: Text(localization.draftMode), title: Text(localization.draftMode),
@ -476,7 +484,6 @@ class _DesignSettingsState extends State<DesignSettings> {
value: widget.draftMode, value: widget.draftMode,
onChanged: widget.isLoading ? null : widget.onDraftModeChanged, onChanged: widget.isLoading ? null : widget.onDraftModeChanged,
), ),
]
], ],
), ),
Padding( Padding(