mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
opt.: ssh tab top padding
This commit is contained in:
@@ -14,7 +14,7 @@ import 'package:toolbox/data/res/store.dart';
|
||||
abstract final class BioAuth {
|
||||
static final _auth = LocalAuthentication();
|
||||
|
||||
static bool get isPlatformSupported => isAndroid || isIOS || isWindows;
|
||||
static final isPlatformSupported = isAndroid || isIOS || isWindows;
|
||||
|
||||
static bool _isAuthing = false;
|
||||
|
||||
@@ -41,8 +41,8 @@ abstract final class BioAuth {
|
||||
case AuthResult.success:
|
||||
// wait for animation
|
||||
Future.delayed(
|
||||
count >= 3
|
||||
? const Duration(milliseconds: 500)
|
||||
isIOS
|
||||
? const Duration(milliseconds: 1300)
|
||||
: const Duration(seconds: 1),
|
||||
() => _isAuthing = false,
|
||||
);
|
||||
|
||||
@@ -375,7 +375,10 @@ final class _AppBar extends CustomAppBar {
|
||||
valueListenable: selectIndex,
|
||||
builder: (_, idx, __) {
|
||||
if (idx == AppTab.ssh.index) {
|
||||
return SizedBox(height: CustomAppBar.barHeight);
|
||||
return SizedBox(
|
||||
height: CustomAppBar.barHeight ??
|
||||
0 + MediaQuery.of(context).padding.top,
|
||||
);
|
||||
}
|
||||
return super.build(context);
|
||||
},
|
||||
|
||||
@@ -136,7 +136,9 @@ class _SSHTabPageState extends State<SSHTabPage>
|
||||
},
|
||||
);
|
||||
_refreshTabs();
|
||||
_tabController.animateTo(_tabIds.length - 1);
|
||||
final idx = _tabIds.length - 1;
|
||||
_tabController.animateTo(idx);
|
||||
_fabRN.value = idx;
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user