Category "dart"

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

Cannot take picture on flutter camera because of "unconfigured surface"

I wanted to capture the image and display a preview screen showing the captured image. It worked fine before, but once I added object detection, I receive a gro

How to receive FCM push notification data in flutter web and redirect user to received link in notification?

I am trying to redirect user to specific page in flutter web on click of notification, till now I am receiving notification, the last open page is displayed in

The default constructor is already defined

When trying to declare CardView class in my Flutter application, I get the error The default constructor is already defined. import 'package:flutter/material.da

Finished with error: Gradle task assembleDebug failed with exit code 1

Launching lib\main.dart on HTC One M9PLUS in debug mode... Initializing gradle... Resolving dependencies... Gradle task 'assembleDebug'... registerResGenerating