opt.: term padding
This commit is contained in:
@@ -172,8 +172,7 @@ class _SettingPageState extends State<SettingPage> {
|
||||
_buildFont(),
|
||||
_buildTermFontSize(),
|
||||
_buildSSHVirtualKeyAutoOff(),
|
||||
// Use hardware keyboard on desktop, so there is no need to set it
|
||||
if (isAndroid) _buildCNKeyboardComp(),
|
||||
//if (isAndroid) _buildCNKeyboardComp(),
|
||||
if (isMobile) _buildSSHVirtKeys(),
|
||||
].map((e) => CardX(child: e)).toList(),
|
||||
);
|
||||
@@ -653,13 +652,13 @@ class _SettingPageState extends State<SettingPage> {
|
||||
// );
|
||||
// }
|
||||
|
||||
Widget _buildCNKeyboardComp() {
|
||||
return ListTile(
|
||||
title: Text(l10n.cnKeyboardComp),
|
||||
subtitle: Text(l10n.cnKeyboardCompTip, style: UIs.textGrey),
|
||||
trailing: StoreSwitch(prop: _setting.cnKeyboardComp),
|
||||
);
|
||||
}
|
||||
// Widget _buildCNKeyboardComp() {
|
||||
// return ListTile(
|
||||
// title: Text(l10n.cnKeyboardComp),
|
||||
// subtitle: Text(l10n.cnKeyboardCompTip, style: UIs.textGrey),
|
||||
// trailing: StoreSwitch(prop: _setting.cnKeyboardComp),
|
||||
// );
|
||||
// }
|
||||
|
||||
Widget _buildSSHVirtKeys() {
|
||||
return ListTile(
|
||||
|
||||
@@ -129,7 +129,7 @@ class _SSHPageState extends State<SSHPage> with AutomaticKeepAliveClientMixin {
|
||||
_media.padding.top,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(
|
||||
top: CustomAppBar.barHeight ?? _media.padding.top,
|
||||
top: CustomAppBar.barHeight ?? 0,
|
||||
left: _horizonPadding,
|
||||
right: _horizonPadding,
|
||||
),
|
||||
@@ -137,7 +137,7 @@ class _SSHPageState extends State<SSHPage> with AutomaticKeepAliveClientMixin {
|
||||
_terminal,
|
||||
controller: _terminalController,
|
||||
keyboardType: TextInputType.emailAddress,
|
||||
enableSuggestions: Stores.setting.cnKeyboardComp.fetch(),
|
||||
enableSuggestions: true,
|
||||
textStyle: _terminalStyle,
|
||||
theme: _terminalTheme,
|
||||
deleteDetection: isMobile,
|
||||
@@ -148,7 +148,7 @@ class _SSHPageState extends State<SSHPage> with AutomaticKeepAliveClientMixin {
|
||||
2 * _horizonPadding,
|
||||
CustomAppBar.barHeight ?? _media.padding.top,
|
||||
),
|
||||
//hideScrollBar: false,
|
||||
hideScrollBar: false,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user