Category "dart"

Is there a way I can get flutter to rebuild a gridview every time a flatbutton is pressed?

I am developing a maze app on flutter. I have a grid of 100 flatButtons that all start as grey. When a flatButton is pressed, I want it to turn green if the mov

flutter multiple postwith php api problem

I am sending multiple user_id with form data in a flutter to PHP page but my PHP API did not see array or obj. I used this code for other projects it could work

Flutter: Coverage:ignore not working with async methods

I can't ignore any async Functions from code coverage. I try to exclude File.exists() from my Code coverage. Attempts: Tried with // coverage:ignore-line ->

Where do I get SHA-1 certificate fingerprint using flutter? (using flutter create --androidx ProjectName)

I want to make a simple login page using flutter, and using it with firebase. The first step when I created the project my code: flutter create --androidx Proje

how to use dropdownbutton with same value?

There are few same values in the dropdown button , when i tap on that it show the error ,is there any way to use the use the dropdown with same values .I have t

Flutter Build Error: Process 'command 'E:\Flutter Apps\flutter\bin\flutter.bat'' finished with non-zero exit value 1

I got this error when I try to generate a signed apk in the android studio of my flutter app - Process 'command 'E:\Flutter Apps\flutter\bin\flutter.bat'' finis

Carousel image on different page with onPressed index

I am kinda new to flutter. I need help on Carousel images. I have carousel images using carousel_pro package. And i can open image on new page when pressed usin

Exception Caught by widgets library

I am getting an exception when fetching data from API and listing it using ListView When I am giving itemCount less than the total fetched data then its working

How to select all checkboxes in dropdownbutton flutter when selecting one checkbox?

I have a drop down list with checkbox elements. Tell me, can I make it so that when selecting 1 element, in my case it is All EV's, all other checkboxes of the

Dart List doesnt get updated with forEach loop

I am using this package to retrieve device's contacts. The lib retrieve 427 contacts and I want to loop the whole list so that I can create another list and sen

Flutter: pub get failed (66)

When i try to implement scoped model, i get this error message: [flutter_course] flutter packages get Running "flutter packages get" in flutter_course... Crea

Flutter: List inheritance in classes

Hello guys I am new on flutter and building a new app... I have a problem that I cannot do it... I want to call elements of List from another class, I wrote so

Flutter/Dart on a IOS device?

How can I run my flutter program on a IOS device? I'm gonna use a iphone6s. I'm using a windows 10. I'm either using visual studio code or android studio. Last

Flutter: How to receive new Data and update Widget without rebuildung

I'm currently facing an annoying I think design problem made by myself and flutter :D In my widgets I work with FutureBuilder. When the Widget gets created, it

Flutter : Hot reload / Hot restart showing white screen with debug banner?

In my flutter app , when I try to hot reload or hot restart , after process complete , the reloaded screen shows for a second and then went whole white only the

How would I offset a 24hr time frame to start from the current time and end after 24 hrs

I currently have a slider that is ranged from 0 - 24 with 24 divisions (ie each division represents an hour.) I wrote a method below that converts the value

Execution failed for task ':app:signReleaseBundle'

I have this error at the moment to make flutter build appbundle this is the error: FAILURE: Build failed with an exception. * What went wrong: Execution failed

Flutter , Could not determine the dependencies of task ':app:processDebugResources'

i dont understand whats wrong, yesterday i could debug the app

In Flutter 3.0, the Qr Code Scanner is giving an error

I am updating an old project. This qr code scanner is giving an error.The project had previously run on flutter 2.10. There are errors in Flutter 3.0. import 'p

D8: Cannot fit requested classes in a single dex file

I am trying to add the below dependencies: firebase_auth: ^0.14.0+5 google_sign_in: ^4.0.7 cloud_firestore: ^0.12.9+5 fluttertoast: ^3.1.3 image_pick