From ca6ad910bbfd4091784184c153dd56593a5ad3c4 Mon Sep 17 00:00:00 2001 From: dagmawibabi <1babidagi@gmail.com> Date: Tue, 10 Sep 2024 01:27:20 +0300 Subject: [PATCH] stausbar color fixed --- lib/main.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/main.dart b/lib/main.dart index 4b8d08d..2eda974 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -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'; @@ -23,6 +24,13 @@ class MyApp extends StatefulWidget { class _MyAppState extends State { @override Widget build(BuildContext context) { + SystemChrome.setSystemUIOverlayStyle( + const SystemUiOverlayStyle( + statusBarColor: Colors.transparent, + statusBarIconBrightness: Brightness.dark, + ), + ); + return ThemeProvider( saveThemesOnChange: true, loadThemeOnInit: true,