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 @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
Box localCache = GStrorage.localCache; Box localCache = GStrorage.localCache;
double statusBarHeight = MediaQuery.of(context).padding.top;
localCache.put('statusBarHeight', statusBarHeight);
return PopScope( return PopScope(
canPop: false, canPop: false,
onPopInvoked: (bool didPop) async { onPopInvoked: (bool didPop) async {

View File

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