mod: 移除用不上的statusBarHeight

This commit is contained in:
orz12
2024-02-27 21:08:20 +08:00
parent 81da31c91b
commit d472f2316a
2 changed files with 0 additions and 5 deletions

View File

@@ -88,8 +88,6 @@ class _MainAppState extends State<MainApp> with SingleTickerProviderStateMixin {
@override
Widget build(BuildContext context) {
Box localCache = GStrorage.localCache;
double statusBarHeight = MediaQuery.of(context).padding.top;
localCache.put('statusBarHeight', statusBarHeight);
return PopScope(
canPop: false,
onPopInvoked: (bool didPop) async {

View File

@@ -50,8 +50,6 @@ class _VideoDetailPageState extends State<VideoDetailPage>
final Box<dynamic> localCache = GStrorage.localCache;
final Box<dynamic> setting = GStrorage.setting;
late double statusBarHeight;
final double videoHeight = Get.size.width * 9 / 16;
late Future _futureBuilderFuture;
// 自动退出全屏
late bool autoExitFullcreen;
@@ -84,7 +82,6 @@ class _VideoDetailPageState extends State<VideoDetailPage>
videoPlayerServiceHandler.onVideoDetailChange(
bangumiIntroController.bangumiDetail.value, p0);
});
statusBarHeight = localCache.get('statusBarHeight');
autoExitFullcreen =
setting.get(SettingBoxKey.enableAutoExit, defaultValue: false);
horizontalScreen =