Category "dart"

I want to export my whole code base like a package or something like a module that I can import

I created an app for a small group of people. I created a lot of widgets/pages and models. Now another group asked if I could make them the app too. I could cre

type '(List<Animal>) => void' is not a subtype of type '((List<Animal?>) => void)?'

type 'List<Object?>' is not a subtype of type 'List<Animal?>' of 'function result' giving me errors on saving selected values value is shown in debu

How update provider's data in Flutter Dart

I have a list of a few things and each has its own ID. I want to pass that certain ID to the provider whenever it's clicked. But as of now, when I click on ITEM

How to download video from tiktok url by flutter?

I would like to download video from tiktok url by flutter. I was able to extract only video url from tiktok video url. Like this https://v16-webapp.tiktok.com/1

keystorePropertiesFile - Gradle task assembleDebug failed with exit code 1

I am getting this error after trying to run the app in an emulator. FAILURE: Build failed with an exception. * Where: Build file 'D:\Projects\news-app\news\mai

I want to calculate each number from the array in flutter

I have an array in the flutter final list = [1, 2, 3, 4, 5]; I want to loop through the array to calculate the sum of all the items in the array,how i can?

BlocListener confusion

I am trying to make an app using flutter blocs, but I am having troubles with the BlocListener not being called and I can't figure out what I'm doing wrong. Her

Define Extension function on GETx

I am trying to define an extension function on GetInterface as extension FindOrPut on GetInterface { S findOrPut<S>(S dependency,{String? tag}){ if(

Dart preview Flutter UI guides is not present in vscode?

I can't find the dart preview flutter UI Guides... I have installed flutter and dart extensions in vscode... Can anyone help?? my Flutter version 2.10.4 and Dar

How to convert a stream to another type without using map?

I've this code: Stream<int> get fooStream async* { barStream.listen((_) async* { int baz = await getBaz(); yield baz; // Does not work });

check weather the user readed data or not in flutter using firestore

I was developing the chat app in flutter using firestore, the users successfully chat one-to-one. but I also want to send the notification to the user that some

type 'Future<dynamic>' is not a subtype of type 'Map<DateTime, List<Event>>'

Hi I'm trying to convert a Future list into a LinkedHashMap and I'm having But I'm returning a Future Dynamic This is my class class Event { final String cal

How to Handle API response model class if object is not Available in some situation on Same API Flutter Dart

I need an Help for API response handling. I've created model class to convert API res. My issue is on Type the API response is changed for example if type = 'Ap

Flutter: Updating the more recent value while the user in viewing the page with streams

Am I thinking about this the right way? I created a function that takes in a value from firebase, value in seconds, and convert it into hours:minutes:seconds, t

Navigate to next question or item in quiz app in a flutter list

I am creating a quiz app in dart/flutter and I want to automatically navigate to the next question when an answer is selected. The questions and answers are in

How to create a countdown in Flutter and Firebase?

I'm using Flutter to build an online auction app with two types of auctions (live auctions and off-site auctions). If the seller selects live auctions when uplo

How do I darken one container in a GestureDetector when I have multiple buttons created with a Widget constructor in Flutter Dart

So I have a piece of code where I need to add multiple buttons to the same page. I am using a GestureDetector since I don't like the onPress animation for the a

Flutter can't install firebase onto macOS

I tried to install the firebase package for flutter. After running flutter pub add firebase_core It states "successfully installed". When I then try to import

Flutter[Android]: Not able to release App with Manage External Storage Permission

We need to allow users to store files in the external storage and for the same, we use MANAGE_EXTERNAL_STORAGE permission in our application. Ideally for the an

"Looking up a deactivated widget's ancestor is unsafe." with StatefullWidget

I can't find any answers for my problem. In the code below, everything was perfect if I use a "GestureDetector" with a "Image" instead the Dismissible with the