Skip to content

Commit

Permalink
add tricky fix for transparent
Browse files Browse the repository at this point in the history
  • Loading branch information
orz12 committed Jul 24, 2024
1 parent 65b53bf commit b4a5268
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ void main() async {
// 小白条、导航栏沉浸
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
systemNavigationBarColor: Colors.transparent,
systemNavigationBarDividerColor: Colors.transparent,
statusBarColor: Colors.transparent,
systemNavigationBarColor: Color(0x01000000),
systemNavigationBarDividerColor: Color(0x01000000),
statusBarColor: Color(0x01000000),
));
Data.init();
PiliScheme.init();
Expand Down
6 changes: 3 additions & 3 deletions lib/pages/video/detail/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
!showStatusBarBackgroundColor
? Brightness.light
: Brightness.dark,
systemNavigationBarColor: Colors.transparent),
systemNavigationBarColor: const Color(0x01000000)),
),
body: Column(
children: [
Expand Down Expand Up @@ -1008,7 +1008,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
!showStatusBarBackgroundColor
? Brightness.light
: Brightness.dark,
systemNavigationBarColor: Colors.transparent),
systemNavigationBarColor: const Color(0x01000000)),
),
body: Container(
color: Theme.of(context).colorScheme.background,
Expand Down Expand Up @@ -1037,7 +1037,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
!showStatusBarBackgroundColor
? Brightness.light
: Brightness.dark,
systemNavigationBarColor: Colors.transparent),
systemNavigationBarColor: const Color(0x01000000)),
),
body: Container(
color: Theme.of(context).colorScheme.background,
Expand Down

0 comments on commit b4a5268

Please sign in to comment.