Category "flutter"

Transluscent StatusBar in Flutter

Please how can I achieve this transluscent effect on the status bar in flutter? I wish to use this on android devices <= ANDROID_19 and also on Lollipop.

pull down to REFRESH in Flutter

My dashboard code looks like this, Here I am doing get req in getReport method, I have added the RefreshIndicator in the code which when pulled down inside cont

ERROR: The GPU does not support this version of OpenGL ES, try an older version in flutter

I/Adreno (21484): ERROR: The GPU does not support this version of OpenGL ES, try an older version D/skia (21484): Shader compilation error D/skia

Error on trying to jsonDecode String in Flutter application

When I try to decode a json String: [{"device-mac":"C9BF2EB47C17","on":true}] with the following function the error: I/flutter ( 8954): type 'List' is not a su

How to forbid navigating back to Login page after successful login?

I have a question. How to achieve this behavior using auto_route's AutoRedirectGuard: User opens Flutter app in browser but session expired and is redirected to

I get a weird error when trying to initialize Hive

Error: Unhandled Exception: HiveError: You need to initialize Hive or provide a path to store the box. Essentially I have these in my dependencies so everything

How to use ADB command in Flutter

I'm writing a test application in Flutter to get data from available function/command in Android: in details I would like to access to Audio Codec device in ord

Can't use Geolocator inside Workmanager's task in Flutter

I am trying to use either Geolocator.getCurrentLocation or Geolocator.checkPermission() inside Workmanager's task. Both of those calls raise the same exception:

Flutter iOS Terminates State get data from firebase push notification

How we can get the data of push notification to save it in our local database using flutter iOS while in terminated state? We are using firebase admin-sdk to se

What is the right gradient to use to achieve the inner shadow effect of the native macOS graphical time picker with Flutter CustomPainter?

I'm recreating the graphical macOS time picker for macos_ui and I'm having some difficulty painting the inner shadow gradient correctly. This shadow, along with

The difference between the use of constructor " className() and className._()

I have these two ways to write a constructor. className() and className._() What is the difference between them and when should I use which? class GlobalStat

how to access flutter bloc in the initState method?

In the code shown below , the dispatch event is called from within the build method after getting the BuildContext object. What if I wish to do is to dispatch a

Flutter conditional statement for getter

I've this in my application: LocalTextItem? get text => FocusedItemModel.of(context).focused as LocalTextItem; The idea was if user taps a text item a

Flutter connectivity: Works on Android, but on iOS simulator when I can open webpages in Safari I have internet but the app says there is no internet?

I use this package: https://pub.dev/packages/connectivity_plus I have a finished application that is working on Android but when I am testing it on iOS it shows

How to remove default navigation route animation

I am below code which given in flutter documentation for page routing // Within the `FirstRoute` widget onPressed: () { Navigator.push( context, Mate

How to use RefreshIndicator to update FutureBuilder state?

I am using FutureBuilder to show the data loaded from server. I want to show the loading state only once when the app starts, that is why I am calling the API f

How to make background image to be fixed in flutter

I'm using an image as a background, and it looks good until I use the keyboard, how to solve that? before the keyboard is shown and that's after the keyboard is

Best practices to change app state from a package

I'm developing a standalone package which is currently inside an app like this: app/packages/my_package I created the package with the create command package te

Dart 'the constructor being called isn't a const constructor' when using FlexibleSpaceBar background property

When using the FlexibleSpaceBar widget in flutter I am unable to set the background property. According to the docs it's supposed to be a Widget. From the docs

How to get a full screen notification from FCM?

I am building a home automation project that has a fire sensor that will write to Firebase Database if there is a fire detected, then from that point I need to