Settings
This commit is contained in:
parent
0f4c7c65b4
commit
3f33299575
|
|
@ -53,7 +53,6 @@ class _CustomFieldsState extends State<CustomFields>
|
||||||
appBarBottom: TabBar(
|
appBarBottom: TabBar(
|
||||||
key: ValueKey(state.settingsUIState.updatedAt),
|
key: ValueKey(state.settingsUIState.updatedAt),
|
||||||
controller: _controller,
|
controller: _controller,
|
||||||
//isScrollable: true,
|
|
||||||
tabs: [
|
tabs: [
|
||||||
Tab(
|
Tab(
|
||||||
text: localization.company,
|
text: localization.company,
|
||||||
|
|
|
||||||
|
|
@ -130,18 +130,16 @@ class SettingsList extends StatelessWidget {
|
||||||
viewModel: viewModel,
|
viewModel: viewModel,
|
||||||
icon: FontAwesomeIcons.heading,
|
icon: FontAwesomeIcons.heading,
|
||||||
),
|
),
|
||||||
SettingsListTile(
|
|
||||||
section: kSettingsWorkflowSettings,
|
|
||||||
viewModel: viewModel,
|
|
||||||
icon: FontAwesomeIcons.codeBranch,
|
|
||||||
),
|
|
||||||
/*
|
|
||||||
SettingsListTile(
|
SettingsListTile(
|
||||||
section: kSettingsInvoiceDesign,
|
section: kSettingsInvoiceDesign,
|
||||||
viewModel: viewModel,
|
viewModel: viewModel,
|
||||||
icon: FontAwesomeIcons.paintBrush,
|
icon: FontAwesomeIcons.paintBrush,
|
||||||
),
|
),
|
||||||
*/
|
SettingsListTile(
|
||||||
|
section: kSettingsWorkflowSettings,
|
||||||
|
viewModel: viewModel,
|
||||||
|
icon: FontAwesomeIcons.codeBranch,
|
||||||
|
),
|
||||||
SettingsListTile(
|
SettingsListTile(
|
||||||
section: kSettingsClientPortal,
|
section: kSettingsClientPortal,
|
||||||
viewModel: viewModel,
|
viewModel: viewModel,
|
||||||
|
|
|
||||||
|
|
@ -93,13 +93,13 @@ class _WorkflowSettingsState extends State<WorkflowSettings>
|
||||||
padding: const EdgeInsets.all(10),
|
padding: const EdgeInsets.all(10),
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
SwitchListTile(
|
SwitchListTile(
|
||||||
secondary: Icon(FontAwesomeIcons.solidEnvelope),
|
secondary: Icon(FontAwesomeIcons.fileInvoice),
|
||||||
activeColor: Theme.of(context).accentColor,
|
activeColor: Theme.of(context).accentColor,
|
||||||
title: Text(localization.autoConvertQuote),
|
title: Text(localization.autoConvertQuote),
|
||||||
subtitle: Text(localization.autoConvertQuoteHelp),
|
subtitle: Text(localization.autoConvertQuoteHelp),
|
||||||
value: settings.autoConvertQuote ?? false,
|
value: settings.autoConvertQuote ?? false,
|
||||||
onChanged: (value) => viewModel.onSettingsChanged(
|
onChanged: (value) => viewModel.onSettingsChanged(
|
||||||
settings.rebuild((b) => b..autoEmailInvoice = value)),
|
settings.rebuild((b) => b..autoConvertQuote = value)),
|
||||||
),
|
),
|
||||||
SwitchListTile(
|
SwitchListTile(
|
||||||
secondary: Icon(FontAwesomeIcons.archive),
|
secondary: Icon(FontAwesomeIcons.archive),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue