Category "dart"

TextFormField validator not working - The method 'validate' was called on null

I am trying to build a simple login page for a new flutter app. The widget tree is very basic. It consists of a MaterialApp that contains a Scaffold. The 'home'

How get the first letter of displayName of a user during google sign in by using flutter and firestore?

And How capitalize the displayName first element? How I get the capital first letter of displayName of user, who just registered on my app and store the first l

Flutter Error on Real iOS Device: "module 'fluttertoast' not found"

My flutter app is working properly in iOS Simulator. I have added fluttertoast by: Adding it on pubspec.yaml dependencies: flutter: sdk: flutter cupertino_icons

Flutter TextField change Icon color when selected

Goal: Changing the color of the prefixIcon next to the TextField when clicking on the TextField. TextField( decoration: InputDecoration( prefixIcon: Icon(

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