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:
@@ -268,23 +268,26 @@ class SSHPageState extends ConsumerState<SSHPage>
|
||||
}
|
||||
|
||||
Widget _buildBottom() {
|
||||
return AnimatedPadding(
|
||||
padding: _media.viewInsets,
|
||||
duration: const Duration(milliseconds: 23),
|
||||
curve: Curves.fastOutSlowIn,
|
||||
child: Container(
|
||||
color: _terminalTheme.background,
|
||||
height: _virtKeysHeight + _media.padding.bottom,
|
||||
child: Consumer(
|
||||
builder: (context, ref, child) {
|
||||
final virtKeyState = ref.watch(virtKeyboardProvider);
|
||||
final virtKeyNotifier = ref.read(virtKeyboardProvider.notifier);
|
||||
|
||||
// Set the terminal input handler
|
||||
_terminal.inputHandler = virtKeyNotifier;
|
||||
|
||||
return _buildVirtualKey(virtKeyState, virtKeyNotifier);
|
||||
},
|
||||
return SafeArea(
|
||||
top: false,
|
||||
child: AnimatedPadding(
|
||||
padding: _media.viewInsets,
|
||||
duration: const Duration(milliseconds: 23),
|
||||
curve: Curves.fastOutSlowIn,
|
||||
child: Container(
|
||||
color: _terminalTheme.background,
|
||||
height: _virtKeysHeight,
|
||||
child: Consumer(
|
||||
builder: (context, ref, child) {
|
||||
final virtKeyState = ref.watch(virtKeyboardProvider);
|
||||
final virtKeyNotifier = ref.read(virtKeyboardProvider.notifier);
|
||||
|
||||
// Set the terminal input handler
|
||||
_terminal.inputHandler = virtKeyNotifier;
|
||||
|
||||
return _buildVirtualKey(virtKeyState, virtKeyNotifier);
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user