Design template changes
This commit is contained in:
parent
adcd5b6771
commit
4b29fa2b0f
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue