From c53a15696921b486ef780e0001ae44c868085ad0 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Sat, 9 Sep 2023 06:48:55 -0400 Subject: [PATCH] Slight UI tweak --- assets/translations/br.json | 2 +- assets/translations/bs.json | 2 +- assets/translations/de.json | 2 +- assets/translations/en.json | 2 +- assets/translations/es.json | 2 +- assets/translations/fa.json | 2 +- assets/translations/fr.json | 2 +- assets/translations/hu.json | 2 +- assets/translations/it.json | 2 +- assets/translations/ja.json | 2 +- assets/translations/pl.json | 2 +- assets/translations/ru.json | 2 +- assets/translations/zh.json | 2 +- lib/pages/add_app.dart | 26 +++++++++++++------------- 14 files changed, 26 insertions(+), 26 deletions(-) diff --git a/assets/translations/br.json b/assets/translations/br.json index ad6a4a5..9073850 100644 --- a/assets/translations/br.json +++ b/assets/translations/br.json @@ -41,7 +41,7 @@ "searchSomeSourcesLabel": "Procurar (Apenas Algumas Fontes)", "search": "Procurar", "additionalOptsFor": "Opções Adicionais para {}", - "supportedSourcesBelow": "Fontes Compatíveis:", + "supportedSources": "Fontes Compatíveis", "trackOnlyInBrackets": "(Apenas Seguir)", "searchableInBrackets": "(Pesquisável)", "appsString": "Apps", diff --git a/assets/translations/bs.json b/assets/translations/bs.json index b65d8a3..7b7d657 100644 --- a/assets/translations/bs.json +++ b/assets/translations/bs.json @@ -41,7 +41,7 @@ "searchSomeSourcesLabel": "Pretraživanje (samo neki izvori)", "search": "Pretraživanje", "additionalOptsFor": "Dodatne opcije za {}", - "supportedSourcesBelow": "Podržani izvori:", + "supportedSources": "Podržani izvori", "trackOnlyInBrackets": "(Samo za praćenje)", "searchableInBrackets": "(Može se pretraživati)", "appsString": "Aplikacije", diff --git a/assets/translations/de.json b/assets/translations/de.json index d5a016b..300844d 100644 --- a/assets/translations/de.json +++ b/assets/translations/de.json @@ -41,7 +41,7 @@ "searchSomeSourcesLabel": "Suche (nur bestimmte Quellen)", "search": "Suchen", "additionalOptsFor": "Zusatzoptionen für {}", - "supportedSourcesBelow": "Unterstützte Quellen:", + "supportedSources": "Unterstützte Quellen", "trackOnlyInBrackets": "(Nur Nachverfolgen)", "searchableInBrackets": "(Durchsuchbar)", "appsString": "Apps", diff --git a/assets/translations/en.json b/assets/translations/en.json index f5473be..abf4080 100644 --- a/assets/translations/en.json +++ b/assets/translations/en.json @@ -41,7 +41,7 @@ "searchSomeSourcesLabel": "Search (Some Sources Only)", "search": "Search", "additionalOptsFor": "Additional Options for {}", - "supportedSourcesBelow": "Supported Sources:", + "supportedSources": "Supported Sources", "trackOnlyInBrackets": "(Track-Only)", "searchableInBrackets": "(Searchable)", "appsString": "Apps", diff --git a/assets/translations/es.json b/assets/translations/es.json index 62fc6e7..75ea294 100644 --- a/assets/translations/es.json +++ b/assets/translations/es.json @@ -41,7 +41,7 @@ "searchSomeSourcesLabel": "Buscar (Solo Algunas Fuentes)", "search": "Buscar", "additionalOptsFor": "Opciones Adicionales para {}", - "supportedSourcesBelow": "Fuentes Soportadas:", + "supportedSources": "Fuentes Soportadas", "trackOnlyInBrackets": "(Solo Seguimiento)", "searchableInBrackets": "(Soporta Búsquedas)", "appsString": "Aplicaciones", diff --git a/assets/translations/fa.json b/assets/translations/fa.json index 466b976..5afe7df 100644 --- a/assets/translations/fa.json +++ b/assets/translations/fa.json @@ -41,7 +41,7 @@ "searchSomeSourcesLabel": "جستجو (فقط برخی منابع)", "search": "جستجو کردن", "additionalOptsFor": "گزینه های اضافی برای {}", - "supportedSourcesBelow": "منابع پشتیبانی شده:", + "supportedSources": "منابع پشتیبانی شده", "trackOnlyInBrackets": "«فقط ردیابی»", "searchableInBrackets": "(قابل جستجو)", "appsString": "برنامه ها", diff --git a/assets/translations/fr.json b/assets/translations/fr.json index a23667b..fbd15c1 100644 --- a/assets/translations/fr.json +++ b/assets/translations/fr.json @@ -41,7 +41,7 @@ "searchSomeSourcesLabel": "Rechercher (certaines sources uniquement)", "search": "Rechercher", "additionalOptsFor": "Options supplémentaires pour {}", - "supportedSourcesBelow": "Sources prises en charge :", + "supportedSources": "Sources prises en charge ", "trackOnlyInBrackets": "(Suivi uniquement)", "searchableInBrackets": "(Recherchable)", "appsString": "Applications", diff --git a/assets/translations/hu.json b/assets/translations/hu.json index dfd1274..0c5d98f 100644 --- a/assets/translations/hu.json +++ b/assets/translations/hu.json @@ -41,7 +41,7 @@ "searchSomeSourcesLabel": "Keresés (csak egyes források)", "search": "Keresés", "additionalOptsFor": "További lehetőségek a következőhöz: {}", - "supportedSourcesBelow": "Támogatott források:", + "supportedSources": "Támogatott források", "trackOnlyInBrackets": "(Csak nyomonkövetés)", "searchableInBrackets": "(Kereshető)", "appsString": "Appok", diff --git a/assets/translations/it.json b/assets/translations/it.json index c46ddbd..d63547d 100644 --- a/assets/translations/it.json +++ b/assets/translations/it.json @@ -41,7 +41,7 @@ "searchSomeSourcesLabel": "Cerca (solo per alcune fonti)", "search": "Cerca", "additionalOptsFor": "Opzioni aggiuntive per {}", - "supportedSourcesBelow": "Fonti supportate:", + "supportedSources": "Fonti supportate", "trackOnlyInBrackets": "(Solo-Monitoraggio)", "searchableInBrackets": "(ricercabile)", "appsString": "App", diff --git a/assets/translations/ja.json b/assets/translations/ja.json index 741597e..81d0e18 100644 --- a/assets/translations/ja.json +++ b/assets/translations/ja.json @@ -41,7 +41,7 @@ "searchSomeSourcesLabel": "検索 (一部ソースのみ)", "search": "検索", "additionalOptsFor": "{}の追加オプション", - "supportedSourcesBelow": "対応するソース:", + "supportedSources": "対応するソース", "trackOnlyInBrackets": "(追跡のみ)", "searchableInBrackets": "(検索可能)", "appsString": "アプリ", diff --git a/assets/translations/pl.json b/assets/translations/pl.json index 5d419ef..bda97f1 100644 --- a/assets/translations/pl.json +++ b/assets/translations/pl.json @@ -50,7 +50,7 @@ "searchSomeSourcesLabel": "Szukaj (tylko niektóre źródła)", "search": "Szukaj", "additionalOptsFor": "Dodatkowe opcje dla {}", - "supportedSourcesBelow": "Obsługiwane źródła:", + "supportedSources": "Obsługiwane źródła", "trackOnlyInBrackets": "(tylko obserwowane)", "searchableInBrackets": "(Wyszukiwalne)", "appsString": "Aplikacje", diff --git a/assets/translations/ru.json b/assets/translations/ru.json index 34b48f1..98c167e 100644 --- a/assets/translations/ru.json +++ b/assets/translations/ru.json @@ -41,7 +41,7 @@ "searchSomeSourcesLabel": "Поиск (только в некоторых источниках)", "search": "Поиск", "additionalOptsFor": "Дополнительные опции для {}", - "supportedSourcesBelow": "Поддерживаемые источники:", + "supportedSources": "Поддерживаемые источники", "trackOnlyInBrackets": "(Только для отслеживания)", "searchableInBrackets": "(Поиск)", "appsString": "Приложения", diff --git a/assets/translations/zh.json b/assets/translations/zh.json index 902034d..a3024e5 100644 --- a/assets/translations/zh.json +++ b/assets/translations/zh.json @@ -41,7 +41,7 @@ "searchSomeSourcesLabel": "搜索(仅支持部分来源)", "search": "搜索", "additionalOptsFor": "{} 的更多选项", - "supportedSourcesBelow": "支持的来源:", + "supportedSources": "支持的来源", "trackOnlyInBrackets": "(仅追踪)", "searchableInBrackets": "(可搜索)", "appsString": "应用列表", diff --git a/lib/pages/add_app.dart b/lib/pages/add_app.dart index 2438270..ee8099e 100644 --- a/lib/pages/add_app.dart +++ b/lib/pages/add_app.dart @@ -463,14 +463,12 @@ class _AddAppPageState extends State { crossAxisAlignment: CrossAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center, children: [ - const SizedBox( - height: 48, - ), Text( - tr('supportedSourcesBelow'), + tr('supportedSources'), + style: const TextStyle(fontWeight: FontWeight.bold), ), const SizedBox( - height: 8, + height: 16, ), ...sourceProvider.sources .map((e) => GestureDetector( @@ -524,15 +522,17 @@ class _AddAppPageState extends State { : const SizedBox(); }, future: pickedSource?.getSourceNote()), - const SizedBox( - height: 16, + SizedBox( + height: pickedSource != null ? 16 : 96, ), - if (pickedSource != null) - getAdditionalOptsCol() - else - getSourcesListWidget(), - const SizedBox( - height: 8, + if (pickedSource != null) getAdditionalOptsCol(), + if (pickedSource == null) + const Divider( + height: 48, + ), + if (pickedSource == null) getSourcesListWidget(), + SizedBox( + height: pickedSource != null ? 8 : 2, ), ])), )