From 3be5543df44de2f595acbd3b3f53bacb17fc531f Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Sat, 6 May 2023 01:25:39 -0400 Subject: [PATCH] Slight UI improvement on Add App page --- lib/pages/add_app.dart | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/lib/pages/add_app.dart b/lib/pages/add_app.dart index 3f1886e..ee0b2e4 100644 --- a/lib/pages/add_app.dart +++ b/lib/pages/add_app.dart @@ -340,8 +340,8 @@ class _AddAppPageState extends State { ], ), const SizedBox( - height: 25, - ), + height: 16, + ) ]); bool shouldShowSearchBar() => @@ -383,20 +383,18 @@ class _AddAppPageState extends State { Widget getAdditionalOptsCol() => Column( crossAxisAlignment: CrossAxisAlignment.stretch, children: [ - const Divider( - height: 64, + const SizedBox( + height: 16, ), Text( tr('additionalOptsFor', args: [pickedSource?.name ?? tr('source')]), - style: TextStyle(color: Theme.of(context).colorScheme.primary)), + style: TextStyle( + color: Theme.of(context).colorScheme.primary, + fontWeight: FontWeight.bold)), const SizedBox( height: 16, ), - if (pickedSourceOverride != null || - pickedSource.runtimeType.toString() == - HTML().runtimeType.toString()) - getHTMLSourceOverrideDropdown(), GeneratedForm( key: Key(pickedSource.runtimeType.toString()), items: pickedSource!.combinedAppSpecificSettingFormItems, @@ -470,11 +468,15 @@ class _AddAppPageState extends State { const SizedBox( height: 16, ), - if (shouldShowSearchBar()) - const SizedBox( - height: 16, - ), + if (pickedSourceOverride != null || + (pickedSource != null && + pickedSource.runtimeType.toString() == + HTML().runtimeType.toString())) + getHTMLSourceOverrideDropdown(), if (shouldShowSearchBar()) getSearchBarRow(), + const SizedBox( + height: 16, + ), if (pickedSource != null) getAdditionalOptsCol() else