mirror of
https://github.com/hiddify/hiddify-next.git
synced 2026-06-05 21:05:07 +08:00
replace IconButton with ExpandButton for Quick Settings and improve quickSettings translations
This commit is contained in:
parent
e5fed9ca6e
commit
3152857060
@ -105,7 +105,7 @@
|
||||
"pages": {
|
||||
"home": {
|
||||
"title": "الرئيسية",
|
||||
"quickSettings": "الإعدادات السريعة"
|
||||
"quickSettings": "خيارات الإعدادات السريعة"
|
||||
},
|
||||
"proxies": {
|
||||
"title": "البروكسيات",
|
||||
|
||||
@ -99,7 +99,7 @@
|
||||
"pages": {
|
||||
"home": {
|
||||
"title": "Home",
|
||||
"quickSettings": "Quick settings"
|
||||
"quickSettings": "Quick setting options"
|
||||
},
|
||||
"proxies": {
|
||||
"title": "Proxies",
|
||||
|
||||
@ -99,7 +99,7 @@
|
||||
"pages": {
|
||||
"home": {
|
||||
"title": "Inicio",
|
||||
"quickSettings": "Ajustes rápidos"
|
||||
"quickSettings": "Opciones de ajustes rápidos"
|
||||
},
|
||||
"proxies": {
|
||||
"title": "Proxies",
|
||||
|
||||
@ -99,7 +99,7 @@
|
||||
"pages": {
|
||||
"home": {
|
||||
"title": "خانه",
|
||||
"quickSettings": "تنظیمات سریع"
|
||||
"quickSettings": "گزینههای تنظیمات سریع"
|
||||
},
|
||||
"proxies": {
|
||||
"title": "پروکسیها",
|
||||
|
||||
@ -99,7 +99,7 @@
|
||||
"pages": {
|
||||
"home": {
|
||||
"title": "Accueil",
|
||||
"quickSettings": "Réglages rapides"
|
||||
"quickSettings": "Options de réglages rapides"
|
||||
},
|
||||
"proxies": {
|
||||
"title": "Proxys",
|
||||
|
||||
@ -99,7 +99,7 @@
|
||||
"pages": {
|
||||
"home": {
|
||||
"title": "Beranda",
|
||||
"quickSettings": "Pengaturan cepat"
|
||||
"quickSettings": "Opsi pengaturan cepat"
|
||||
},
|
||||
"proxies": {
|
||||
"title": "Proxy",
|
||||
|
||||
@ -99,7 +99,7 @@
|
||||
"pages": {
|
||||
"home": {
|
||||
"title": "Início",
|
||||
"quickSettings": "Configurações rápidas"
|
||||
"quickSettings": "Opções de configurações rápidas"
|
||||
},
|
||||
"proxies": {
|
||||
"title": "Proxies",
|
||||
|
||||
@ -103,7 +103,7 @@
|
||||
"pages": {
|
||||
"home": {
|
||||
"title": "Главная",
|
||||
"quickSettings": "Быстрые настройки"
|
||||
"quickSettings": "Опции быстрых настроек"
|
||||
},
|
||||
"proxies": {
|
||||
"title": "Прокси",
|
||||
|
||||
@ -99,7 +99,7 @@
|
||||
"pages": {
|
||||
"home": {
|
||||
"title": "Ana Sayfa",
|
||||
"quickSettings": "Hızlı ayarlar"
|
||||
"quickSettings": "Hızlı ayar seçenekleri"
|
||||
},
|
||||
"proxies": {
|
||||
"title": "Proxy'ler",
|
||||
|
||||
@ -99,7 +99,7 @@
|
||||
"pages": {
|
||||
"home": {
|
||||
"title": "主页",
|
||||
"quickSettings": "快速设置"
|
||||
"quickSettings": "快速设置选项"
|
||||
},
|
||||
"proxies": {
|
||||
"title": "代理",
|
||||
|
||||
@ -99,7 +99,7 @@
|
||||
"pages": {
|
||||
"home": {
|
||||
"title": "首頁",
|
||||
"quickSettings": "快速設定"
|
||||
"quickSettings": "快速設定選項"
|
||||
},
|
||||
"proxies": {
|
||||
"title": "代理",
|
||||
|
||||
@ -60,16 +60,6 @@ class HomePage extends HookConsumerWidget {
|
||||
// material: (context, platform) => MaterialIconButtonData(
|
||||
// tooltip: t.profile.add.buttonText,
|
||||
// )),
|
||||
if (ref.watch(hasAnyProfileProvider).value ?? false)
|
||||
Semantics(
|
||||
key: const ValueKey("profile_quick_settings"),
|
||||
label: t.pages.home.quickSettings,
|
||||
child: IconButton(
|
||||
icon: Icon(Icons.tune_rounded, color: theme.colorScheme.primary),
|
||||
onPressed: () => ref.read(bottomSheetsNotifierProvider.notifier).showQuickSettings(),
|
||||
),
|
||||
),
|
||||
const Gap(8),
|
||||
Semantics(
|
||||
key: const ValueKey("profile_add_button"),
|
||||
label: t.pages.profiles.add,
|
||||
@ -132,6 +122,7 @@ class HomePage extends HookConsumerWidget {
|
||||
),
|
||||
),
|
||||
ActiveProxyFooter(),
|
||||
Gap(32),
|
||||
],
|
||||
),
|
||||
),
|
||||
@ -148,6 +139,43 @@ class HomePage extends HookConsumerWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
if (ref.watch(hasAnyProfileProvider).value ?? false)
|
||||
Positioned(
|
||||
right: 0,
|
||||
left: 0,
|
||||
bottom: 0,
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Material(
|
||||
color: theme.colorScheme.primaryContainer,
|
||||
borderRadius: const BorderRadius.only(
|
||||
topLeft: Radius.circular(16),
|
||||
topRight: Radius.circular(16),
|
||||
),
|
||||
child: InkWell(
|
||||
borderRadius: const BorderRadius.only(
|
||||
topLeft: Radius.circular(16),
|
||||
topRight: Radius.circular(16),
|
||||
),
|
||||
onTap: () => ref.read(bottomSheetsNotifierProvider.notifier).showQuickSettings(),
|
||||
child: Container(
|
||||
height: 32,
|
||||
padding: const EdgeInsetsDirectional.only(start: 16, end: 8),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Text(t.pages.home.quickSettings),
|
||||
const Gap(4),
|
||||
const Icon(Icons.arrow_drop_up_rounded, size: 16),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user