mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 15:24:35 +01:00
fix: editing pref store (#618)
This commit is contained in:
@@ -8,7 +8,7 @@ final class _AppBar extends StatelessWidget implements PreferredSizeWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return SizedBox(
|
||||
height: paddingTop,
|
||||
height: preferredSize.height,
|
||||
child: isIOS
|
||||
? const Center(child: Text(BuildData.name, style: UIs.text15Bold))
|
||||
: null,
|
||||
@@ -16,5 +16,11 @@ final class _AppBar extends StatelessWidget implements PreferredSizeWidget {
|
||||
}
|
||||
|
||||
@override
|
||||
Size get preferredSize => Size.fromHeight(paddingTop);
|
||||
}
|
||||
Size get preferredSize {
|
||||
final height = switch (Pfs.type) {
|
||||
Pfs.macos => paddingTop + (CustomAppBar.sysStatusBarHeight ?? 0),
|
||||
_ => paddingTop,
|
||||
};
|
||||
return Size.fromHeight(height);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user