Skip to content

Commit

Permalink
stausbar color fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
dagmawibabi committed Sep 9, 2024
1 parent cc451d8 commit ca6ad91
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import "package:arxiv/models/bookmarks.dart";
import "package:arxiv/models/paper.dart";
import "package:arxiv/pages/splash_screen.dart";
import "package:flutter/material.dart";
import "package:flutter/services.dart";
import "package:hive_flutter/hive_flutter.dart";
import 'package:theme_provider/theme_provider.dart';

Expand All @@ -23,6 +24,13 @@ class MyApp extends StatefulWidget {
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
SystemChrome.setSystemUIOverlayStyle(
const SystemUiOverlayStyle(
statusBarColor: Colors.transparent,
statusBarIconBrightness: Brightness.dark,
),
);

return ThemeProvider(
saveThemesOnChange: true,
loadThemeOnInit: true,
Expand Down

0 comments on commit ca6ad91

Please sign in to comment.