Slight UI changes on Add App page

This commit is contained in:
Imran Remtulla
2022-11-25 20:41:57 -05:00
parent f81ef6a416
commit 4d5773bdcc

View File

@@ -198,13 +198,19 @@ class _AddAppPageState extends State<AddAppPage> {
child: const Text('Add')) child: const Text('Add'))
], ],
), ),
if (sourceProvider.sources
.where((e) => e.canSearch)
.isNotEmpty &&
pickedSource == null &&
userInput.isEmpty)
const SizedBox( const SizedBox(
height: 16, height: 16,
), ),
if (sourceProvider.sources if (sourceProvider.sources
.where((e) => e.canSearch) .where((e) => e.canSearch)
.isNotEmpty && .isNotEmpty &&
pickedSource == null) pickedSource == null &&
userInput.isEmpty)
Row( Row(
children: [ children: [
Expanded( Expanded(
@@ -321,6 +327,12 @@ class _AddAppPageState extends State<AddAppPage> {
}, },
defaultValues: pickedSource! defaultValues: pickedSource!
.additionalSourceAppSpecificDefaults), .additionalSourceAppSpecificDefaults),
if (pickedSource!
.additionalAppSpecificSourceAgnosticDefaults
.isNotEmpty)
const SizedBox(
height: 8,
),
GeneratedForm( GeneratedForm(
items: pickedSource! items: pickedSource!
.additionalAppSpecificSourceAgnosticFormItems .additionalAppSpecificSourceAgnosticFormItems
@@ -342,12 +354,6 @@ class _AddAppPageState extends State<AddAppPage> {
}, },
defaultValues: pickedSource! defaultValues: pickedSource!
.additionalAppSpecificSourceAgnosticDefaults), .additionalAppSpecificSourceAgnosticDefaults),
if (pickedSource!
.additionalAppSpecificSourceAgnosticDefaults
.isNotEmpty)
const SizedBox(
height: 8,
),
], ],
) )
else else
@@ -356,6 +362,9 @@ class _AddAppPageState extends State<AddAppPage> {
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
const SizedBox(
height: 48,
),
const Text( const Text(
'Supported Sources:', 'Supported Sources:',
), ),