Category "flutter"

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

FocusAttachment Is Not Working When Navigating Away and Back From Flutter Web

I have a Flutter app for web that checks if control is pressed, and is managed in my internal state. Using this answer I created the code to check if control is

How to open existing flutter project from Xcode?

I have an existing flutter project, which coded with VS Code. Now I want to open it from Xcode to do some configurations in Runner.xcworkspace. But it was unab

Can i use my oauth 2.0 client id created in my laravel website for flutter app in simultaneously?

I have an online store that I built by Bagisto, which depends on the Laravel platform and I created my oauth 2.0 client id in https://console.cloud.google.com/

How to delete a specific array element in firebase collection?

I have list of appointments stored in firebase collection, how can I delete a specific appointment ?

Page level scrolling per TabBarView with widgets on top

I would like to implement the following behavior in Flutter for web where scrollbars allow to scroll all the way up and down of the page on any of the tabs. Scr