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)!;
return ScrollableListView(
primary: true,
children: <Widget>[
FormCard(
children: <Widget>[
@ -466,9 +467,16 @@ class _DesignSettingsState extends State<DesignSettings> {
_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<DesignSettings> {
value: widget.draftMode,
onChanged: widget.isLoading ? null : widget.onDraftModeChanged,
),
]
],
),
Padding(