Add bottom padding to forms

This commit is contained in:
Hillel Coren 2021-08-06 16:37:37 +03:00
parent 69263d0c3e
commit 159db1905e
13 changed files with 33 additions and 0 deletions

View File

@ -39,6 +39,7 @@ class NotificationSettings extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
children: <Widget>[
FormCard(
isLast: true,
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[

View File

@ -390,6 +390,7 @@ class _ClientPortalState extends State<ClientPortal>
],
),
FormCard(
isLast: true,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (!state.settingsUIState.isFiltered) ...[
@ -507,6 +508,7 @@ class _ClientPortalState extends State<ClientPortal>
],
),
FormCard(
isLast: true,
children: <Widget>[
BoolDropdownButton(
label: localization.requireInvoiceSignature,
@ -539,6 +541,7 @@ class _ClientPortalState extends State<ClientPortal>
ScrollableListView(
children: <Widget>[
FormCard(
isLast: true,
children: <Widget>[
DecoratedFormField(
controller: _customMessageDashboard,
@ -567,6 +570,7 @@ class _ClientPortalState extends State<ClientPortal>
ScrollableListView(
children: <Widget>[
FormCard(
isLast: true,
children: <Widget>[
DecoratedFormField(
label: localization.header,

View File

@ -307,6 +307,7 @@ class _CompanyDetailsState extends State<CompanyDetails>
),
if (!state.settingsUIState.isFiltered)
FormCard(
isLast: true,
children: <Widget>[
AppDropdownButton(
showUseDefault: true,
@ -345,6 +346,7 @@ class _CompanyDetailsState extends State<CompanyDetails>
child: ScrollableListView(
children: <Widget>[
FormCard(
isLast: true,
children: <Widget>[
DecoratedFormField(
label: localization.address1,
@ -590,6 +592,7 @@ class _CompanyDetailsState extends State<CompanyDetails>
),
]),
FormCard(
isLast: true,
children: <Widget>[
if (company.isModuleEnabled(EntityType.invoice)) ...[
DecoratedFormField(

View File

@ -185,6 +185,7 @@ class _DeviceSettingsState extends State<DeviceSettings>
],
),
FormCard(
isLast: true,
children: <Widget>[
FutureBuilder(
future: viewModel.authenticationSupported,
@ -320,6 +321,7 @@ class _DeviceSettingsState extends State<DeviceSettings>
),
]),
FormCard(
isLast: true,
children: [
AppDropdownButton<String>(
labelText: localization.loadColorTheme,

View File

@ -275,6 +275,7 @@ class _EmailSettingsState extends State<EmailSettings> {
],
),
FormCard(
isLast: true,
children: <Widget>[
AppDropdownButton<int>(
showBlank: true,

View File

@ -237,6 +237,7 @@ class _GeneratedNumbersState extends State<GeneratedNumbers>
ScrollableListView(
children: <Widget>[
FormCard(
isLast: true,
children: <Widget>[
AppDropdownButton<int>(
showUseDefault: true,
@ -591,6 +592,7 @@ class HelpPanel extends StatelessWidget {
return FormCard(
crossAxisAlignment: CrossAxisAlignment.stretch,
isLast: true,
children: fields
.where((field) => showVendorFields || !field.startsWith('vendor'))
.where((field) =>

View File

@ -100,6 +100,7 @@ class _ImportExportState extends State<ImportExport> {
onCancelPressed: () => setState(() => _response = null),
),
FormCard(
isLast: true,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
if (_isExporting)

View File

@ -196,6 +196,7 @@ class _InvoiceDesignState extends State<InvoiceDesign>
],
),
FormCard(
isLast: true,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
LearnMoreUrl(
@ -299,6 +300,7 @@ class _InvoiceDesignState extends State<InvoiceDesign>
),
*/
FormCard(
isLast: true,
child: MultiSelectList(
options: [
...[
@ -354,6 +356,7 @@ class _InvoiceDesignState extends State<InvoiceDesign>
),
),
FormCard(
isLast: true,
child: MultiSelectList(
options: [
CompanyFields.name,
@ -391,6 +394,7 @@ class _InvoiceDesignState extends State<InvoiceDesign>
),
),
FormCard(
isLast: true,
child: MultiSelectList(
options: [
CompanyFields.name,
@ -426,6 +430,7 @@ class _InvoiceDesignState extends State<InvoiceDesign>
),
),
FormCard(
isLast: true,
child: MultiSelectList(
options: [
...[
@ -464,6 +469,7 @@ class _InvoiceDesignState extends State<InvoiceDesign>
),
),
FormCard(
isLast: true,
child: MultiSelectList(
options: [
...[
@ -499,6 +505,7 @@ class _InvoiceDesignState extends State<InvoiceDesign>
),
),
FormCard(
isLast: true,
child: MultiSelectList(
options: [
...[
@ -534,6 +541,7 @@ class _InvoiceDesignState extends State<InvoiceDesign>
),
),
FormCard(
isLast: true,
child: MultiSelectList(
options: [
ProductItemFields.item,
@ -568,6 +576,7 @@ class _InvoiceDesignState extends State<InvoiceDesign>
),
),
FormCard(
isLast: true,
child: MultiSelectList(
options: [
TaskItemFields.service,
@ -602,6 +611,7 @@ class _InvoiceDesignState extends State<InvoiceDesign>
),
),
FormCard(
isLast: true,
child: MultiSelectList(
options: [
InvoiceTotalFields.subtotal,

View File

@ -208,6 +208,7 @@ class _LocalizationSettingsState extends State<LocalizationSettings>
),
if (!state.settingsUIState.isFiltered)
FormCard(
isLast: true,
children: <Widget>[
/*
AppDropdownButton(
@ -251,6 +252,7 @@ class _LocalizationSettingsState extends State<LocalizationSettings>
ScrollableListView(
children: [
FormCard(
isLast: true,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(

View File

@ -85,6 +85,7 @@ class _ProductSettingsState extends State<ProductSettings> {
],
),
FormCard(
isLast: true,
children: <Widget>[
/*
SwitchListTile(

View File

@ -301,6 +301,7 @@ class _UserDetailsState extends State<UserDetails>
),
),
FormCard(
isLast: true,
children: <Widget>[
FormColorPicker(
labelText: localization.accentColor,

View File

@ -107,6 +107,7 @@ class _WorkflowSettingsState extends State<WorkflowSettings>
),
]),
FormCard(
isLast: true,
children: <Widget>[
AppDropdownButton<String>(
showUseDefault: true,
@ -132,6 +133,7 @@ class _WorkflowSettingsState extends State<WorkflowSettings>
ScrollableListView(
children: <Widget>[
FormCard(
isLast: true,
children: <Widget>[
BoolDropdownButton(
label: localization.autoConvertQuote,

View File

@ -243,6 +243,7 @@ class _SubscriptionEditState extends State<SubscriptionEdit>
],
),
FormCard(
isLast: true,
children: <Widget>[
EntityDropdown(
key: ValueKey('__products_${subscription.productIds}__'),
@ -380,6 +381,7 @@ class _SubscriptionEditState extends State<SubscriptionEdit>
],
),
FormCard(
isLast: true,
children: [
DecoratedFormField(
label: localization.returnUrl,
@ -449,6 +451,7 @@ class _SubscriptionEditState extends State<SubscriptionEdit>
),
ScrollableListView(children: [
FormCard(
isLast: true,
children: [
DecoratedFormField(
label: localization.webhookUrl,