Giter Site home page Giter Site logo

foostudio / flutter_statusbar_manager Goto Github PK

View Code? Open in Web Editor NEW
192.0 192.0 75.0 9.39 MB

Flutter StatusBar Manager for iOS & Android

License: MIT License

Java 36.14% Ruby 7.85% Objective-C 12.36% Dart 41.71% Shell 1.94%
android dart flutter flutter-plugin ios

flutter_statusbar_manager's People

Contributors

lorenzoliveto avatar mendieta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

flutter_statusbar_manager's Issues

Can gradle plugin be upgraded?

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?

Error with version 1.0.1

I receive the following error when trying to run on Android: error: package tandroid.animation does not exist
import tandroid.animation.ArgbEvaluator;

  • What went wrong:
    Execution failed for task ':flutter_statusbar_manager:compileDebugJavaWithJavac'.

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

error: package android.support.v4.view does not exist

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.

Some feature not working on android in release mode

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:
image


env:

  • device: Google Pixel 2 XL running Android 9
  • flutter doctor ouput:
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

Deprecated version of the Android embedding

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.

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!```

StatusBarStyle does not change

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.

'setStatusBarStyle:animated:' is deprecated: first deprecated in iOS 9.0

/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.

Still maintained?

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?

Support null-safety

Hi,

I created a PR for supporting null-safety:
#18

I later saw that there is also #17 waiting in the PR queue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.