Category "flutter"

how to give permission write only to sqlite db in flutter

Here's my code: Future<void> updatevalue(int b, int value) async { await initDatabase(); await _db.rawQuery('UPDATE chines_recipe SET favor

Android & iOS notification icons (grey) while using flutter_launcher_icons 0.9.2

I believe the question has been asked in various places like GitHub, Stackoverflow, Reddit & other forums. Using flutter and firebase notifications some dev

A value of type 'Null' can't be assigned to a parameter of type 'Widget Function(BuildContext, CounterState)' in a const constructor

This is an project where I'm trying to implement (and understand) Bloc methodology. I got the error: A value of type 'Null' can't be assigned to a parameter of

flutter build ios --release fatal error: module 'add_2_calendar' not found

I want to make a release for my project who work perefctly in dev mode. When I make only flutter ios build it works fine but flutter build ios --release doesn'

'flutter_ijkplayer' setFileDataSource Showing a Black screen before video loading.How can i fix it?

I was making a video player in Android with flutter. I am using 'flutter_ijkplayer' for video playback. https://github.com/CaiJingLong/flutter_ijkplayer My prob

Flutter ffi failed to open dynamic library

I'm trying to use the flutter ffi to port over my c/c++ code but it's unable to open the dynamic library it needs to be able to work(I'm on windows) import 'dar

How can I add customised header on http request for authentication when using flutter graphql library?

I am using this library https://pub.dev/packages/graphql_flutter for graphql in a flutter web application. Below code can be used to get authentication token:

Flutter overlapping issue in Pageview?

when I swipe from one Page to another in my Pageview the the Background is overlapping. On Page 2 is the Background the Front of Page 1. What to do?

Flutter app orientation changes from portrait to landscape

When I load my flutter app which uses " scan: ^1.6.0 " package once the scanner gets mounted my app shifts orientation from portrait to landscape this only happ

Control the Google maps flutter plugin cycling stack

We have a problem with the markers on the google maps flutter plugin. When we have multiple markers overlayed the click actions are, as Google Maps SDK explains

Getting null value outside the function in flutter

I am getting a null value for the 'count' when I am accessing it through the Text widget. But when I print the value of count in the function, it shows the corr

Flutter just_audio package how play audio from bytes

I'm using just_audio plugin and it has on description a feature: Read from byte stream. Basically when I put a file (from url) to play, I'm saving the bytes fro

Undefined class 'CurrentUser'

CurrentUser is undefine I am trying to figure out what has it changed to.If you know plz help It's says Could not find the correct Provider above this Screen Wi

Could you share with me information about [...] in Dart?

I've solved several solutions on Codewars and saw that one solution uses [...], I tried to google what it is, but google only finds how to create arrays (List a

Flutter Get package error no named parameter with the name 'useInheritedMediaQuery'

I got error after I added get package and implemented it to my controller. If I add final myController = Get.put(MyController()); I got this error, yes just one

Flutter : Apple Pay button isn't showing in real Device using pay Plugin

I want to use in app purchase, that's why I using Pay plugin in my flutter app. Everything is fine when I check it in my simulator but when I run it on real iPh

How to update a form after a field is changed

I've got a form and I want to re-do a calculation when the user finishes editing any of the fields. I thought onFieldSubmitted would do it but this never gets c

Flutter IconTheme won't apply

I have a simple flutter app that will switch theme on button pressed, while the overall theme is applied some that I had defined before doesn't seem to be appli

Hive generate adapter could not generate outputs

I am having issue generating the hive type adapter. But no such out put generated by the command line codes flutter packages pub run build_runner build --delete

Flutter User ColorFiltered to dark image with matrix

I want in flutter to user ColorFiltered, so i can make jpg image dark here is my code but i didn't get the right result, i don't understand matrix and how to ch