opt.: only req noti perm on Android

This commit is contained in:
lollipopkit
2024-04-08 20:13:00 +08:00
parent 439208605b
commit aed5a63a19
9 changed files with 72 additions and 65 deletions

View File

@@ -0,0 +1,28 @@
part of 'home.dart';
final class _AppBar extends CustomAppBar {
final ValueNotifier<int> selectIndex;
const _AppBar({
required this.selectIndex,
super.title,
super.actions,
super.centerTitle,
});
@override
Widget build(BuildContext context) {
return ValueListenableBuilder(
valueListenable: selectIndex,
builder: (_, idx, __) {
if (idx == AppTab.ssh.index) {
return SizedBox(
height: CustomAppBar.barHeight ??
0 + MediaQuery.of(context).padding.top,
);
}
return super.build(context);
},
);
}
}