Category "flutter"

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 <== ١-٢-٣-٤-٥-٦-٧-٨-٩

Couldn't resolve the package 'geolocator' in 'package:geolocator/geolocator.dart'

Install geolocator 8.0.0, everything is normal. But when I go to run the project I get all these errors, even though I import the library correctly. class Googl

The method "collection" isn't defined for the type FirebaseStorage

I'm getting an error trying to store data in firestore. Another issue is using my emulator in android studio ( pixel 5 ) or even all my 4 connected devices. I c

The method 'get' isn't defined for the type 'AppState'. pics with Flutter

Hello everyone. I was studying "Dart and Flutter: The Complete Developer's Guide" on Udemy. And this error showed up, I have no idea how to fix this error. Ever

Auto_route & build_runner disable NullSafety

I'm trying to use auto_route library with build_runner, but each time my build_runner generate my router.gr.dart file, it does generate code with null safety, w

Flutter - How to save recorded audio file?

I am using flutter_sound to record voice(audio). I can't see any file save on the emulator after the recording stops. Recorder class: import 'package:flutter/ma

How to Disable ReorderableListView Reorder capability but still allow scrolling?

How do we deactivate the ReorderableListView dragging/reordering capabilities in Flutter? I would like to disable the dragging function but still allow scrollin

The state of flutter bloc is not updating if called outside the bloc builder

I initialised all necessary blocs in my main file. Even after this, the state of bloc is not updating if called from outside the bloc builder. I am trying to im