diff --git a/Sources/dafl_project_flutter/lib/main.dart b/Sources/dafl_project_flutter/lib/main.dart index 56136eb..4d751b0 100644 --- a/Sources/dafl_project_flutter/lib/main.dart +++ b/Sources/dafl_project_flutter/lib/main.dart @@ -27,8 +27,14 @@ class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { Paint.enableDithering = true; - SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, - overlays: [SystemUiOverlay.top]); + SystemChrome.setEnabledSystemUIMode( + SystemUiMode.manual, + overlays: [SystemUiOverlay.top], + ); + SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle( + statusBarIconBrightness: Brightness.dark, // For Android (dark icons) + statusBarBrightness: Brightness.dark, // For iOS (dark icons) + )); return ChangeNotifierProvider( create: (context) => CardProvider(), child: const MaterialApp( diff --git a/Sources/dafl_project_flutter/lib/model/user.dart b/Sources/dafl_project_flutter/lib/model/user.dart index eb327be..a16110f 100644 --- a/Sources/dafl_project_flutter/lib/model/user.dart +++ b/Sources/dafl_project_flutter/lib/model/user.dart @@ -24,7 +24,7 @@ class User { //constructors User(this.usernameDafl, this.passwDafl) { - _actualiseCurrentMusic(); + actualiseCurrentMusic(); } Music get currentMusic => _currentMusic; //lists @@ -38,7 +38,7 @@ class User { discovery.add(music); } - _actualiseCurrentMusic() async { + actualiseCurrentMusic() async { try { _currentMusic = Music(await MyApp.api.getCurrentlyPlayingTrack()); } on ApiException { diff --git a/Sources/dafl_project_flutter/lib/views/pages/main/w_profile.dart b/Sources/dafl_project_flutter/lib/views/pages/main/w_profile.dart index 74dfbd6..805234e 100644 --- a/Sources/dafl_project_flutter/lib/views/pages/main/w_profile.dart +++ b/Sources/dafl_project_flutter/lib/views/pages/main/w_profile.dart @@ -31,6 +31,7 @@ class _MainPageProfilState extends State { @override initState() { username = MyApp.controller.currentUser.usernameDafl; + MyApp.controller.currentUser.actualiseCurrentMusic(); super.initState(); } diff --git a/Sources/dafl_project_flutter/lib/views/pages/sign_in/p_sign_in.dart b/Sources/dafl_project_flutter/lib/views/pages/sign_in/p_sign_in.dart index 44e9edd..62fdf45 100644 --- a/Sources/dafl_project_flutter/lib/views/pages/sign_in/p_sign_in.dart +++ b/Sources/dafl_project_flutter/lib/views/pages/sign_in/p_sign_in.dart @@ -79,6 +79,7 @@ class _SignInPageState extends State { Padding( padding: const EdgeInsets.fromLTRB(50, 0, 20, 0), child: TextField( + keyboardAppearance: Brightness.dark, controller: userNameTextField, decoration: const InputDecoration( border: InputBorder.none, @@ -123,6 +124,7 @@ class _SignInPageState extends State { Padding( padding: const EdgeInsets.fromLTRB(50, 0, 20, 0), child: TextField( + keyboardAppearance: Brightness.dark, controller: passwordTextField, obscureText: true, decoration: const InputDecoration(