flutter_statusbar_manager
flutter_statusbar_manager copied to clipboard
When I change app the style does not keep the state
I switch to DARK mode, when I open another app, and then I go back to my app, the status bar goes back to light.
I already tried to call the method in the builds, but it still does not keep.
I'm using Android Oreo
Future main() async {
await FlutterStatusbarManager.setStyle(StatusBarStyle.DARK_CONTENT);
await FlutterStatusbarManager.setColor(Color.fromARGB(255, 30, 255, 255));
await FlutterStatusbarManager.setTranslucent(true);
runApp(MyApp());
}
[√] Flutter (Channel beta, v1.3.8, on Microsoft Windows [versão 10.0.17134.648], locale pt-BR)
• Flutter version 1.3.8 at C:\flutter
• Framework revision e5b1ed7a7f (13 days ago), 2019-03-06 14:23:37 -0800
• Engine revision f4951df193
• Dart version 2.2.1 (build 2.2.1-dev.0.0 571ea80e11)
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at C:\Android\android-sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = C:\Android\android-sdk
• Java binary at: C:\Program Files\Android\Android Studio1\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
• All Android licenses accepted.
[√] Android Studio (version 3.1)
• Android Studio at C:\Program Files\Android\Android Studio1
• Flutter plugin version 26.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
[√] IntelliJ IDEA Community Edition (version 2017.3)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.3.5
• Flutter plugin version 27.1.1
• Dart plugin version 173.4700
[√] VS Code, 64-bit edition (version 1.32.3)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 2.22.2
[√] Connected device (1 available)
• Moto Z2 Play • 0040861752 • android-arm • Android 8.0.0 (API 26)
• No issues found!```
same here, any solution
@jkyeo I do not know if the best solution, I bypassed this problem by setting again in the event "onResume" of the application
https://docs.flutter.io/flutter/widgets/WidgetsBindingObserver-class.html
Hi, I am aware of this issue. There is a rework in progress of this library that will not use native libraries. In the meantime @yuridiniz solution will work
@yuridiniz It worked. Nice solution.
@mendieta When will the redo be finished
This should be fixed now, can you check