From 4d5773bdcce732c63af8963f04c2d73aeba22ae1 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Fri, 25 Nov 2022 20:41:57 -0500 Subject: [PATCH] Slight UI changes on Add App page --- lib/pages/add_app.dart | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/lib/pages/add_app.dart b/lib/pages/add_app.dart index 528237f..7fc2c6d 100644 --- a/lib/pages/add_app.dart +++ b/lib/pages/add_app.dart @@ -198,13 +198,19 @@ class _AddAppPageState extends State { child: const Text('Add')) ], ), - const SizedBox( - height: 16, - ), if (sourceProvider.sources .where((e) => e.canSearch) .isNotEmpty && - pickedSource == null) + pickedSource == null && + userInput.isEmpty) + const SizedBox( + height: 16, + ), + if (sourceProvider.sources + .where((e) => e.canSearch) + .isNotEmpty && + pickedSource == null && + userInput.isEmpty) Row( children: [ Expanded( @@ -321,6 +327,12 @@ class _AddAppPageState extends State { }, defaultValues: pickedSource! .additionalSourceAppSpecificDefaults), + if (pickedSource! + .additionalAppSpecificSourceAgnosticDefaults + .isNotEmpty) + const SizedBox( + height: 8, + ), GeneratedForm( items: pickedSource! .additionalAppSpecificSourceAgnosticFormItems @@ -342,12 +354,6 @@ class _AddAppPageState extends State { }, defaultValues: pickedSource! .additionalAppSpecificSourceAgnosticDefaults), - if (pickedSource! - .additionalAppSpecificSourceAgnosticDefaults - .isNotEmpty) - const SizedBox( - height: 8, - ), ], ) else @@ -356,6 +362,9 @@ class _AddAppPageState extends State { crossAxisAlignment: CrossAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center, children: [ + const SizedBox( + height: 48, + ), const Text( 'Supported Sources:', ),