From d472f2316a8c6b441105048d0e84766da3dd36ce Mon Sep 17 00:00:00 2001 From: orz12 Date: Tue, 27 Feb 2024 21:08:20 +0800 Subject: [PATCH] =?UTF-8?q?mod:=20=E7=A7=BB=E9=99=A4=E7=94=A8=E4=B8=8D?= =?UTF-8?q?=E4=B8=8A=E7=9A=84statusBarHeight?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/main/view.dart | 2 -- lib/pages/video/detail/view.dart | 3 --- 2 files changed, 5 deletions(-) diff --git a/lib/pages/main/view.dart b/lib/pages/main/view.dart index 9ed295f3..65b4bca7 100644 --- a/lib/pages/main/view.dart +++ b/lib/pages/main/view.dart @@ -88,8 +88,6 @@ class _MainAppState extends State 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 { diff --git a/lib/pages/video/detail/view.dart b/lib/pages/video/detail/view.dart index 3e1cae2e..58f53928 100644 --- a/lib/pages/video/detail/view.dart +++ b/lib/pages/video/detail/view.dart @@ -50,8 +50,6 @@ class _VideoDetailPageState extends State final Box localCache = GStrorage.localCache; final Box 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 videoPlayerServiceHandler.onVideoDetailChange( bangumiIntroController.bangumiDetail.value, p0); }); - statusBarHeight = localCache.get('statusBarHeight'); autoExitFullcreen = setting.get(SettingBoxKey.enableAutoExit, defaultValue: false); horizontalScreen =