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?
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
I am trying to define an extension function on GetInterface as extension FindOrPut on GetInterface { S findOrPut<S>(S dependency,{String? tag}){ if(
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
I've this code: Stream<int> get fooStream async* { barStream.listen((_) async* { int baz = await getBaz(); yield baz; // Does not work });
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
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
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
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
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
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
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
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
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
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
String baseUrl = "httpswwwmywebsiteit"; Uri primaUrl = Uri.parse(baseUrl); print(primaUrl); // returns httpswwwmywebsiteit Is this a valid uri? How can I
Here, when I add a new picture, it appears here and it can be opened to a full screen, but when I click I want to download the picture that I long pressed on to
I am working on cart item in Flutter application. Right now I am working on editing cart item. The structure of my code is such that each cart item is a Statefu
I want to use "child" to create a row in a container, but unfortunatly I am getting this error: The named parameter 'child' isn't defined.:29 What I am doing w
I get data from json but when try add data to list ant then print list get Instance of class User { final String name; User(this.name); } ................