foostudio / flutter_statusbar_manager Goto Github PK
View Code? Open in Web Editor NEWFlutter StatusBar Manager for iOS & Android
License: MIT License
Flutter StatusBar Manager for iOS & Android
License: MIT License
When I change build.gradle
to use classpath 'com.android.tools.build:gradle:3.3.0'
I experience this error when running flutter run
:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.0 and higher.
The following dependencies do not satisfy the required version:
project ':flutter_statusbarcolor' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71
and probably need to downgrade to 3.2.1 as per https://stackoverflow.com/questions/54693595/flutter-the-android-gradle-plugin-supports-only-kotlin-gradle-plugin-version-1
Is it possible to upgrade?
I receive the following error when trying to run on Android: error: package tandroid.animation does not exist
import tandroid.animation.ArgbEvaluator;
Compilation failed; see the compiler error output for details.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org
BUILD FAILED in 2s
Finished with error: Gradle build failed: 1
This issue seems to occur only on AndroidX. I've migrated my code to AndroidX. This can be resolved by importing import androidx.core.view.ViewCompat
in your main java file. I'm no android dev so I don't know how to exactly resolve this but if possible please implement a method which import correct things for the correct platform.
As is said in documentation, on a very small note...
(I'm putting this here to make it faster for others to find)
When I debug the flutter app, everything is ok. But when I run in release mode flutter run --release -d xxxxxx
, below feature is not work for me:
FlutterStatusbarManager.setStyle(StatusBarStyle.DARK_CONTENT);
FlutterStatusbarManager.setNavigationBarStyle(NavigationBarStyle.DARK);
Call the manager just in app build:
env:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.14.3 18D109, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.3)
[✓] VS Code (version 1.32.3)
[!] Proxy Configuration
! NO_PROXY is not set
[!] Connected device
! No devices available
The plugins `flutter_statusbar_manager` use a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if these plugins support the Android V2 embedding. Otherwise, consider removing them since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
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!```
Please add support for androidx.
setNetworkActivityIndicatorVisible not showing on ios device
I'm using Google Pixel 3 (with Android P), and the following code didn't change my status bar theme.
//~ inside of State<MyApp>/initState method
FlutterStatusbarManager.setStyle(StatusBarStyle.DARK_CONTENT);
I've tried StatusBarStyle.DARK_CONTENT
and also StatusBarStyle.LIGHT_CONTENT
and both of them showed white status bar icons.
thanks.
/Volumes/SDK/BETA/flutter/.pub-cache/git/flutter_statusbar_manager-9b77cd82c12db323fa2c38dd9434ea36496a9b3b/ios/Cl
asses/FlutterStatusbarManagerPlugin.m:61:40: warning: 'setStatusBarStyle:animated:' is deprecated: first deprecated in
iOS 9.0 - Use -[UIViewController preferredStatusBarStyle] [-Wdeprecated-declarations]
[[UIApplication sharedApplication] setStatusBarStyle:statusBarStyle animated:animated];
^
In module 'UIKit' imported from /Volumes/Work/myApp/Danmupic_new/danmupic/ios/Pods/Target Support
Files/flutter_statusbar_manager/flutter_statusbar_manager-prefix.pch:2:
/Volumes/APP/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Libra
ry/Frameworks/UIKit.framework/Headers/UIApplication.h:464:1: note: 'setStatusBarStyle:animated:' has been explicitly
marked deprecated here
- (void)setStatusBarStyle:(UIStatusBarStyle)statusBarStyle animated:(BOOL)animated API_DEPRECATED("Use -[UIViewController
preferredStatusBarStyle]", ios(2.0, 9.0)) API_UNAVAILABLE(tvos);
^
2 warnings generated.
1 warning generated.
As this lib doesn't seem to be maintained anymore, I created a fork which I will update from time to time: github.com/rafaelmaeuer/flutter_statusbar_manager
I want to continue using this dependency in some projects, so I am thinking about re-publishing it on pub.dev as statusbar_manager
package... any thoughts?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.