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