Category "dart"

Dart/Flutter DateTime difference inDays error for March 31 April 1

I am trying to get the difference in Days between two dates picked from a DatePicker. This works fine except for ONE single date : March 31. The difference in

How to manipulate arrays/index

I would like to access the index of a list and concatenate it to the index of another list. For example, the first user's input is "AB" and the second is "CD",

Should you use required named parameters when making a data model in flutter?

Is it good practice to require named parameters for data models in flutter when you know that the data should always have a specific field like an id or usernam

How to add image to ExpantionTile in flutter

I've been working on an app in which I want to add an image in the ExpansionTile function but the catch is that flutter don't allow us to add image in that. For

How to make a Timer.periodic function fire right away after calling it Flutter

I'm trying to use a Timer.periodic function in flutter and it seems that when I call it, it waits for the specified duration that I put in for the time between

Flutter and getx: update() does not notify GetBuilder

I have a very strange issue for my current project using Flutter and getx package. Short: the Notifier is not working. On initState from a GetBuilder I try to u

How to fix type 'Future<dynamic>' is not a subtype of type 'String' Flutter

Flutter beginner here; I'm getting this error: type 'Future<dynamic>' is not a subtype of type 'String' Function that fetch download url from firebase st

Flutter reusable text field and and it's style

I have started learning Flutter recently and wanted to know how to write code that displays multiple text field of same sized box, text style, decoration. I hav

I want to make a slider custom bottom value with incremet in flutter

i want this type slider in flutter any one please help me i want to make this type slider with the same value get by the slider value i am facing the problem to

how to display binance crypto specific pair price value in flutter UI?

I was working to make a crypto app but I have some issues displaying crypto pairs in UI. I've tried different ways but it's not working. Please can you suggest

TextInputType.number only accepts numbers from an english keyboard

i am making a multilingual shopping app and i have arabic and anthor language ++ english as the languages the user can pick, when someone wants to order they ha

Navigation in flutter without context

I created a service folder and made a file in it called request. dart, here I intend to place all requests I make into a class called AuthService, with the logi

TextField is gaining focus after navigating to another screen

In my project I've wrapped the whole MaterialApp in a GestureDetector which is supposed to dismiss keyboard when user tapped the screen, using this piece of cod

Flutter Feature Discovery Not SHowing Overlay

I had built an application and I'm trying to show feature discovery but, It is not showing discovery. Also not showing any error. Question I Referred To Solve I

VS Code - Line in the middle of the screen

I'm a big fan of VS Code and i'm just learning to code. But when using dart language, there is a line in the middle of my screen the-line!!!. I don't have this

Why Flutter Container does not respects its width and height constraints when it is inside other Container

Container( width: 200.0, height: 200.0, child: Container( width: 50.0, height: 50.0, decoration: BoxDecoration( shape: BoxShape.circle,

suddenly my app can't fetch data from friestore on my flutter project

suddenly i cant fetch data inside of the firestore database. tried to change google-services.json and still did't fetch data from firestore. and i tried to disc

How to design custom ListWheelScrollView like below image in flutter?

I added two ListWheelScrollView to show the value first for numbers(1-9) and second for string values like an hour, day, week, and month but focus item design d

Format & localize date labels in charts_flutter time series chart

I have following time series in charts_flutter: charts.Series<DatumPoint, DateTime>( id: 'Series', colorFn: (_, __) => charts.Material

FileOutputStream in dart flutter

what's the equivalent fileoutputstream of java in dart? Java code file = new FileOutputStream(logFile, true); byte[] input = "String".getBytes(); file.write(inp