fix: settings page and SSH virtual keys bottom overflow (#1015)

* fix: Add SafeArea to the page to prevent content from being obscured

Add the SafeArea component to multiple pages to ensure that content is not obscured by the device status bar or navigation bar, thereby enhancing the user experience

* fix(ssh page): Fix the issue of the virtual keyboard area being displayed within the security zone

Wrap the virtual keyboard area within the SafeArea to prevent it from being obscured by the system UI, and remove any unnecessary bottom padding
This commit is contained in:
GT610
2026-01-21 10:56:39 +08:00
committed by GitHub
parent d5e22cbc65
commit 347d294f6e
5 changed files with 28 additions and 23 deletions

View File

@@ -11,9 +11,10 @@ final class _AppAboutPageState extends State<_AppAboutPage> with AutomaticKeepAl
@override
Widget build(BuildContext context) {
super.build(context);
return ListView(
padding: const EdgeInsets.all(13),
children: [
return SafeArea(
child: ListView(
padding: const EdgeInsets.all(13),
children: [
UIs.height13,
ConstrainedBox(constraints: const BoxConstraints(maxHeight: 47, maxWidth: 47), child: UIs.appIcon),
const Text('${BuildData.name}\nv${BuildData.build}', textAlign: TextAlign.center, style: UIs.text15),
@@ -59,6 +60,7 @@ ${l10n.madeWithLove('[lollipopkit](${Urls.myGithub})')}
''',
).paddingAll(13).cardx,
],
),
);
}

View File

@@ -98,7 +98,7 @@ class _SettingsPageState extends ConsumerState<SettingsPage> with SingleTickerPr
),
],
),
body: TabBarView(controller: _tabCtrl, children: SettingsTabs.pages),
body: SafeArea(child: TabBarView(controller: _tabCtrl, children: SettingsTabs.pages)),
);
}
}