From 893fb63a7237eb7fe65b824aa59a5219eface529 Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Thu, 6 Mar 2025 10:22:33 +0800 Subject: [PATCH] mod: video appbar Signed-off-by: bggRGjQaUbCoE --- lib/pages/video/detail/view_v.dart | 33 ++++++++++++++++++------------ 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/lib/pages/video/detail/view_v.dart b/lib/pages/video/detail/view_v.dart index 70a63d58d..182baa414 100644 --- a/lib/pages/video/detail/view_v.dart +++ b/lib/pages/video/detail/view_v.dart @@ -647,13 +647,18 @@ class _VideoDetailPageVState extends State AppBar( backgroundColor: Colors.black, toolbarHeight: 0, - systemOverlayStyle: shouldShow - ? null - : SystemUiOverlayStyle( - statusBarIconBrightness: Brightness.light, - systemNavigationBarIconBrightness: - Theme.of(context).brightness.reverse, - ), + systemOverlayStyle: Platform.isAndroid + ? shouldShow + ? null + : SystemUiOverlayStyle( + statusBarIconBrightness: + Brightness.light, + systemNavigationBarIconBrightness: + Theme.of(context) + .brightness + .reverse, + ) + : null, ), if (shouldShow) AppBar( @@ -663,12 +668,14 @@ class _VideoDetailPageVState extends State .withOpacity( videoDetailController.scrollRatio.value), toolbarHeight: 0, - systemOverlayStyle: SystemUiOverlayStyle( - statusBarIconBrightness: - Theme.of(context).brightness.reverse, - systemNavigationBarIconBrightness: - Theme.of(context).brightness.reverse, - ), + systemOverlayStyle: Platform.isAndroid + ? SystemUiOverlayStyle( + statusBarIconBrightness: + Theme.of(context).brightness.reverse, + systemNavigationBarIconBrightness: + Theme.of(context).brightness.reverse, + ) + : null, ), ], );