Settings
This commit is contained in:
parent
709bfbae40
commit
5d88391d14
|
|
@ -1,6 +1,7 @@
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||||
|
import 'package:invoiceninja_flutter/ui/app/form_card.dart';
|
||||||
import 'package:invoiceninja_flutter/ui/app/forms/app_form.dart';
|
import 'package:invoiceninja_flutter/ui/app/forms/app_form.dart';
|
||||||
import 'package:invoiceninja_flutter/ui/app/forms/bool_dropdown_button.dart';
|
import 'package:invoiceninja_flutter/ui/app/forms/bool_dropdown_button.dart';
|
||||||
import 'package:invoiceninja_flutter/ui/settings/settings_scaffold.dart';
|
import 'package:invoiceninja_flutter/ui/settings/settings_scaffold.dart';
|
||||||
|
|
@ -68,7 +69,8 @@ class _WorkflowSettingsState extends State<WorkflowSettings>
|
||||||
focusNode: _focusNode,
|
focusNode: _focusNode,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
ListView(
|
ListView(
|
||||||
padding: const EdgeInsets.all(10),
|
children: <Widget>[
|
||||||
|
FormCard(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
BoolDropdownButton(
|
BoolDropdownButton(
|
||||||
label: localization.autoEmailInvoice,
|
label: localization.autoEmailInvoice,
|
||||||
|
|
@ -83,15 +85,19 @@ class _WorkflowSettingsState extends State<WorkflowSettings>
|
||||||
label: localization.autoArchiveInvoice,
|
label: localization.autoArchiveInvoice,
|
||||||
helpLabel: localization.autoArchiveInvoiceHelp,
|
helpLabel: localization.autoArchiveInvoiceHelp,
|
||||||
value: settings.autoArchiveInvoice ?? false,
|
value: settings.autoArchiveInvoice ?? false,
|
||||||
onChanged: (value) => viewModel.onSettingsChanged(
|
onChanged: (value) => viewModel.onSettingsChanged(settings
|
||||||
settings.rebuild((b) => b..autoArchiveInvoice = value)),
|
.rebuild((b) => b..autoArchiveInvoice = value)),
|
||||||
iconData: FontAwesomeIcons.archive,
|
iconData: FontAwesomeIcons.archive,
|
||||||
showBlank: state.settingsUIState.isFiltered,
|
showBlank: state.settingsUIState.isFiltered,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
ListView(
|
ListView(
|
||||||
padding: const EdgeInsets.all(10),
|
padding: const EdgeInsets.all(10),
|
||||||
|
children: <Widget>[
|
||||||
|
FormCard(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
BoolDropdownButton(
|
BoolDropdownButton(
|
||||||
label: localization.autoConvertQuote,
|
label: localization.autoConvertQuote,
|
||||||
|
|
@ -99,6 +105,7 @@ class _WorkflowSettingsState extends State<WorkflowSettings>
|
||||||
value: settings.autoConvertQuote ?? false,
|
value: settings.autoConvertQuote ?? false,
|
||||||
onChanged: (value) => viewModel.onSettingsChanged(
|
onChanged: (value) => viewModel.onSettingsChanged(
|
||||||
settings.rebuild((b) => b..autoConvertQuote = value)),
|
settings.rebuild((b) => b..autoConvertQuote = value)),
|
||||||
|
iconData: FontAwesomeIcons.fileInvoice,
|
||||||
showBlank: state.settingsUIState.isFiltered,
|
showBlank: state.settingsUIState.isFiltered,
|
||||||
),
|
),
|
||||||
BoolDropdownButton(
|
BoolDropdownButton(
|
||||||
|
|
@ -107,10 +114,13 @@ class _WorkflowSettingsState extends State<WorkflowSettings>
|
||||||
value: settings.autoArchiveQuote ?? false,
|
value: settings.autoArchiveQuote ?? false,
|
||||||
onChanged: (value) => viewModel.onSettingsChanged(
|
onChanged: (value) => viewModel.onSettingsChanged(
|
||||||
settings.rebuild((b) => b..autoArchiveQuote = value)),
|
settings.rebuild((b) => b..autoArchiveQuote = value)),
|
||||||
|
iconData: FontAwesomeIcons.archive,
|
||||||
showBlank: state.settingsUIState.isFiltered,
|
showBlank: state.settingsUIState.isFiltered,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
]),
|
]),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue