fix: ssh term deletion on safe keyboard (#242) & new: bgRunTip

This commit is contained in:
lollipopkit
2024-01-05 22:14:00 +08:00
parent b442e0f914
commit c337e959b5
14 changed files with 33 additions and 1 deletions

View File

@@ -244,6 +244,12 @@ abstract class S {
/// **'Run in backgroud'**
String get bgRun;
/// No description provided for @bgRunTip.
///
/// In en, this message translates to:
/// **'This switch only means the program will try to run in the background, whether it can run in the background depends on whether the permission is enabled or not. For native Android, please disable \"Battery Optimization\" in this app, and for miui, please change the power saving policy to \"Unlimited\".'**
String get bgRunTip;
/// No description provided for @bioAuth.
///
/// In en, this message translates to:

View File

@@ -78,6 +78,9 @@ class SDe extends S {
@override
String get bgRun => 'Hintergrundaktualisierung';
@override
String get bgRunTip => 'Dieser Schalter bedeutet nur, dass die App versuchen wird, im Hintergrund zu laufen. Ob sie im Hintergrund laufen kann, hängt davon ab, ob die Berechtigungen aktiviert sind oder nicht. Bei nativem Android deaktivieren Sie bitte \"Batterieoptimierung\" in dieser App, und bei miui ändern Sie bitte die Energiesparrichtlinie auf \"Unbegrenzt\".';
@override
String get bioAuth => 'Biozertifizierung';

View File

@@ -78,6 +78,9 @@ class SEn extends S {
@override
String get bgRun => 'Run in backgroud';
@override
String get bgRunTip => 'This switch only means the program will try to run in the background, whether it can run in the background depends on whether the permission is enabled or not. For native Android, please disable \"Battery Optimization\" in this app, and for miui, please change the power saving policy to \"Unlimited\".';
@override
String get bioAuth => 'Biometric auth';

View File

@@ -78,6 +78,9 @@ class SFr extends S {
@override
String get bgRun => 'Exécuter en arrière-plan';
@override
String get bgRunTip => 'Ce commutateur signifie seulement que l\'application essaiera de fonctionner en arrière-plan. La possibilité de fonctionner en arrière-plan dépend de l\'activation ou non des autorisations. Pour Android, veuillez désactiver l\'option \"Optimisation de la batterie\" dans cette application, et pour Miui, veuillez changer la politique d\'économie d\'énergie en \"Illimité\".';
@override
String get bioAuth => 'Authentification biométrique';

View File

@@ -78,6 +78,9 @@ class SId extends S {
@override
String get bgRun => 'Jalankan di Backgroud';
@override
String get bgRunTip => 'Sakelar ini hanya berarti aplikasi akan mencoba berjalan di latar belakang, apakah aplikasi dapat berjalan di latar belakang tergantung pada apakah izin diaktifkan atau tidak. Untuk Android asli, nonaktifkan \"Pengoptimalan Baterai\" di aplikasi ini, dan untuk miui, ubah kebijakan penghematan daya ke \"Tidak Terbatas\".';
@override
String get bioAuth => 'Biosertifikasi';

View File

@@ -78,6 +78,9 @@ class SZh extends S {
@override
String get bgRun => '后台运行';
@override
String get bgRunTip => '此开关只代表程序会尝试在后台运行,具体能否后台运行取决于是否开启了权限。原生 Android 请关闭本 App 的“电池优化”MIUI 请修改省电策略为“无限制”。';
@override
String get bioAuth => '生物认证';
@@ -897,6 +900,9 @@ class SZhTw extends SZh {
@override
String get bgRun => '背景運行';
@override
String get bgRunTip => '此開關只代表程式會嘗試在背景執行,具體能否背景運行取決於是否開啟了權限。 原生 Android 請關閉本 App 的“電池優化”MIUI 請修改省電策略為“無限制”。';
@override
String get bioAuth => '生物認證';

View File

@@ -24,6 +24,7 @@
"backupVersionNotMatch": "Die Backup-Version stimmt nicht überein.",
"battery": "Batterie",
"bgRun": "Hintergrundaktualisierung",
"bgRunTip": "Dieser Schalter bedeutet nur, dass die App versuchen wird, im Hintergrund zu laufen. Ob sie im Hintergrund laufen kann, hängt davon ab, ob die Berechtigungen aktiviert sind oder nicht. Bei nativem Android deaktivieren Sie bitte \"Batterieoptimierung\" in dieser App, und bei miui ändern Sie bitte die Energiesparrichtlinie auf \"Unbegrenzt\".",
"bioAuth": "Biozertifizierung",
"canPullRefresh": "Danach: herunterziehen zum Aktualisieren",
"cancel": "Abbrechen",

View File

@@ -24,6 +24,7 @@
"backupVersionNotMatch": "Backup version is not match.",
"battery": "Battery",
"bgRun": "Run in backgroud",
"bgRunTip": "This switch only means the program will try to run in the background, whether it can run in the background depends on whether the permission is enabled or not. For native Android, please disable \"Battery Optimization\" in this app, and for miui, please change the power saving policy to \"Unlimited\".",
"bioAuth": "Biometric auth",
"canPullRefresh": "You can pull to refresh.",
"cancel": "Cancel",

View File

@@ -24,6 +24,7 @@
"backupVersionNotMatch": "La version de sauvegarde ne correspond pas.",
"battery": "Batterie",
"bgRun": "Exécuter en arrière-plan",
"bgRunTip": "Ce commutateur signifie seulement que l'application essaiera de fonctionner en arrière-plan. La possibilité de fonctionner en arrière-plan dépend de l'activation ou non des autorisations. Pour Android, veuillez désactiver l'option \"Optimisation de la batterie\" dans cette application, et pour Miui, veuillez changer la politique d'économie d'énergie en \"Illimité\".",
"bioAuth": "Authentification biométrique",
"canPullRefresh": "Vous pouvez tirer pour actualiser.",
"cancel": "Annuler",

View File

@@ -24,6 +24,7 @@
"backupVersionNotMatch": "Versi cadangan tidak cocok.",
"battery": "Baterai",
"bgRun": "Jalankan di Backgroud",
"bgRunTip": "Sakelar ini hanya berarti aplikasi akan mencoba berjalan di latar belakang, apakah aplikasi dapat berjalan di latar belakang tergantung pada apakah izin diaktifkan atau tidak. Untuk Android asli, nonaktifkan \"Pengoptimalan Baterai\" di aplikasi ini, dan untuk miui, ubah kebijakan penghematan daya ke \"Tidak Terbatas\".",
"bioAuth": "Biosertifikasi",
"canPullRefresh": "Anda dapat menarik untuk menyegarkan.",
"cancel": "Membatalkan",

View File

@@ -24,6 +24,7 @@
"backupVersionNotMatch": "备份版本不匹配,无法恢复",
"battery": "电池",
"bgRun": "后台运行",
"bgRunTip": "此开关只代表程序会尝试在后台运行,具体能否后台运行取决于是否开启了权限。原生 Android 请关闭本 App 的“电池优化”MIUI 请修改省电策略为“无限制”。",
"bioAuth": "生物认证",
"canPullRefresh": "可以下拉刷新",
"cancel": "取消",

View File

@@ -24,6 +24,7 @@
"backupVersionNotMatch": "備份版本不匹配,無法還原",
"battery": "電池",
"bgRun": "背景運行",
"bgRunTip": "此開關只代表程式會嘗試在背景執行,具體能否背景運行取決於是否開啟了權限。 原生 Android 請關閉本 App 的“電池優化”MIUI 請修改省電策略為“無限制”。",
"bioAuth": "生物認證",
"canPullRefresh": "可以下拉更新",
"cancel": "取消",

View File

@@ -8,6 +8,7 @@ import 'package:toolbox/core/extension/context/locale.dart';
import 'package:toolbox/core/extension/context/snackbar.dart';
import 'package:toolbox/core/utils/platform/auth.dart';
import 'package:toolbox/data/res/store.dart';
import 'package:toolbox/data/res/ui.dart';
import 'package:toolbox/view/page/setting/platform_pub.dart';
import 'package:toolbox/view/widget/appbar.dart';
import 'package:toolbox/view/widget/input_field.dart';
@@ -51,6 +52,7 @@ class _AndroidSettingsPageState extends State<AndroidSettingsPage> {
Widget _buildBgRun() {
return ListTile(
title: Text(l10n.bgRun),
subtitle: Text(l10n.bgRunTip, style: UIs.textGrey),
trailing: StoreSwitch(prop: Stores.setting.bgRun),
);
}

View File

@@ -139,7 +139,7 @@ class _SSHPageState extends State<SSHPage> with AutomaticKeepAliveClientMixin {
keyboardType: _keyboardType,
textStyle: _terminalStyle,
theme: _terminalTheme,
deleteDetection: isIOS,
deleteDetection: isMobile,
autofocus: true,
keyboardAppearance: _isDark ? Brightness.dark : Brightness.light,
hideScrollBar: false,