This commit is contained in:
Hillel Coren 2021-03-23 16:51:47 +02:00
parent 01fc3481c8
commit f45ba78f86
1 changed files with 19 additions and 11 deletions

View File

@ -267,13 +267,14 @@ class _SettingsWizardState extends State<SettingsWizard> {
); );
return AlertDialog( return AlertDialog(
title: Text(localization.welcomeToInvoiceNinja), title:
isMobile(context) ? Text(localization.welcomeToInvoiceNinja) : null,
content: AppForm( content: AppForm(
focusNode: _focusNode, focusNode: _focusNode,
formKey: _formKey, formKey: _formKey,
child: SingleChildScrollView( child: SingleChildScrollView(
child: Container( child: Container(
width: isMobile(context) ? double.infinity : 400, width: isMobile(context) ? double.infinity : 500,
child: Column( child: Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: isMobile(context) children: isMobile(context)
@ -287,11 +288,26 @@ class _SettingsWizardState extends State<SettingsWizard> {
darkMode, darkMode,
] ]
: [ : [
Row(
children: [
Expanded(
child: Text(
localization.welcomeToInvoiceNinja,
style: Theme.of(context).textTheme.headline6,
)),
if (state.isHosted) ...[
SizedBox(width: kTableColumnGap),
Flexible(child: darkMode),
]
],
),
SizedBox(height: 16),
Row( Row(
children: [ children: [
Expanded(child: companyName), Expanded(child: companyName),
SizedBox(width: kTableColumnGap), SizedBox(width: kTableColumnGap),
Expanded(child: darkMode), Expanded(
child: state.isHosted ? subdomain : darkMode),
], ],
), ),
Row( Row(
@ -308,14 +324,6 @@ class _SettingsWizardState extends State<SettingsWizard> {
Expanded(child: currency), Expanded(child: currency),
], ],
), ),
if (state.isHosted)
Row(
children: [
Expanded(child: subdomain),
SizedBox(width: kTableColumnGap),
Expanded(child: SizedBox()),
],
),
], ],
), ),
), ),