Category "flutter"

How can I allow a user to choose an Icon for something they're adding?

Is it possible to load all the icons from the Icon class and allow the user to pick one of them to be used? For example i want the user to input a text in a tex

How to implement a Drop Down list in Flutter?

I am trying to load data from my REST API and load them to the dropdown lists. Below is the code where my dropdown list and data loading from outside is impleme

How can I get "errors" from graphql-flutter

I want to get my sended errors from data.errors. I use "https://github.com/zino-app/graphql-flutter/tree/master/packages/graphql" to get my response. My respons

How can I get "errors" from graphql-flutter

I want to get my sended errors from data.errors. I use "https://github.com/zino-app/graphql-flutter/tree/master/packages/graphql" to get my response. My respons

flutter send email with url_launcher uri

I'm using url_launcher to send email with system email in my app. I'm using code below and this guy is doing so well. void launchEmailSubmission() async { f

How To Listen to BLoC Events From Another Screen in Flutter

SOLVED: I WAS GETTING ANOTHER STATE INSTEAD OF WHAT I EXPECTED I have two screens in my app. The first one contains products and each one of them is wrapped wit

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

Flutter : PlatformException(no_available_camera, No cameras available for taking pictures., null, null)

guys! I am facing this camera version. It happened after I merged my projects. It says there is no camera available but back then it was running fine. Please ha

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",

How to set Flutter AppBar Transparent without the Status bar

I tried to set a transparent appbar using. return Scaffold( extendBodyBehindAppBar: true,       appBar: AppBar(   &nbs

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

Combining Provider with a steam provider not updating

I am working on a technique to determine if some has elevated rights to show an edit icon. I am using Firebase for auth and firestore for back end. My thoughts

Flutter Firebase and Android issue - unable to initialise. Cannot find google-services.json with latest (sept 2020) migration instructions executed

I'm a Flutter developer and for the past two days I have been trying to get my app working for Android. It's quite a big app with a lot of different functionali

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

Cant take to build in iOS after zebrautility: ^0.0.38 added

I'm new to Xcode in a flutter, when I integrated zebrautility plugin in the flutter project, the android module worked fine, and print works. When I try to run

Flutter: How to draw a star

I am trying to custom my container shape to look like this: I tried to do it with customPaint but I don't know very well this widget so I need help. How can I

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

Add text window before asking user to share his location

I want to display custom window with text before an user allows location sharing, when user denies to share location, I want to log him out. However I am having

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