Category "flutter"

Error Parsing JSON response from Server in Flutter

I have a JSON response that I would like to parse to be able to use it's data. I have created the model accordingly using https://quicktype.io/ which is given b

flutter pop back to navigated route

i am looking for proper solution to pop back to page where user was navigated. I already found this answer but i do believe there should be more proper way to d

Flutter Substitute for accentColor

I trying to make a light theme and a dark theme for my app, I making an course of flutter and the code it's a little out of date and some commands doesn't work

How to validate url using regex but without http and https

I want to validate url i am using this regex !(Uri.tryParse(val)?.hasAbsolutePath ?? false) i entered google.com but it return false when we do not add http or

How get a statistical summary from List of Maps in Dart?

Using the following List of Maps, I would like to create a kind of statistical summary in order to be able to create a plot from it. List<dynamic> dat

flutter got error code. _CastError (Null check operator used on a null value)

Update context Can I use where and orderby in FirebaseFirestore to running? Because I got the error in itemCount: snapshot.data!.docs.length when I use this cod

HEREmaps SDK Flutter - Routing error: 6, exception: These credentials do not authorize access, error code: 403

Im using Here SDK (Explore) for Flutter, the account got billinginformations and right credentials. I can show a map and draw polylines on it. But when i try to

Flutter BluetoothPort connection device is lost

I tried to print pdf from Flutter app in Zebra ZQ620 by bluetooth. But I get a problem, it seems that I lost Bluetooth port connection. I use Flutter Bluetooth_

How to refresh FutureProvider without showing loading indicator again in Flutter with Riverpod?

Currently I am refreshing a FutureProvider that is responsible for fetching data from Firebase and displaying it in a simple ListView with liquid_pull_to_refres

How to redraw only single widget in flutter?

No render all widgets. only render one widget. Means not called build method because it's render all widgets. Thanks for giving me your important time.

Failing script as process substitution not working in Dart

Is there any way to make the script: diff <(echo 'hello') <(echo 'hello-2') work, as currently it fails with error in Dart when run using Process.run or P

In Flutter custom paint, how to fill a custom shape's body partially

I have a progress indicator like bellow. I want to fill it(according to the given task's progress) with green color like the image below. How can I do that effi

Padding issue with parent Container Widget?

How can i match parent widget size? I want to have list features in Grid builder, Same time Grid's child widget size should match with parent widget. Grid shoul

Not saving the flutter switch value to sqflite database

I am a completely a beginner to sqlite and flutter. I was trying to create a local database to my flutter to do app. So I watched some youtube videos and starte

Do apps built with Flutter suffer from dead code?

Flutter may technically allow you to code once and build an app for multiple platforms, but realistically you do not want to have the same experience on mobile

Type mismatch: inferred type is String? but String was expected error in projects after flutter upgrade

I updated my Flutter version to 3.0.0 and then any project I run it gives me this error e: C:\src\.pub-cache\hosted\pub.dartlang.org\agora_rtc_engine-4.2.0\andr

how to get through 'Future<List<QuerySnapshot<Map<String, dynamic>>>> and get data

I have a list of type 'Future<List<QuerySnapshot<Map<String, dynamic>>>> that looks like this, var postlist = FirebaseFirestore.instance

Flutter: Is it possible to set vertical alignment in text lines at height> 1.0?

All texts in Figma have some height, for example 1.5, but when I set that height to the TextStyle, all lines with the new height are aligned to the bottom. If

Flutter: Generating routes with auto_route using a Class with named constructors instead of default constructor

I am trying to generate the router.gr.dart file using the auto_route package in flutter. My class has 3 named constructors: ProfilePage.a({ Key? key,

Convert arabic number to english number & the reverse in Dart

I want to replace Arabic number with English number. 1-2-3-4-5-6-7-8-9 <== ١-٢-٣-٤-٥-٦-٧-٨-٩