Category "flutter"

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(

Integrating HERE Maps with Flutter Typeahead package for search suggestions

I am using flutter_typeahead for showing place suggestions to users as they search using a text field and fetching these suggestions from HERE Maps. flutter typ

Script '/opt/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1102

I am trying to build a flutter app using google Cloud Build, I am constantly getting this error 1: [+1000 ms] FAILURE: Build failed with an exception. 1: [

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

Why when I install my apps APK on Physical Android Device says App Not Installed

Attention great developers. I have hit a snag. I have built this application in flutter and has been in development for over a year. When I run the command flut

DraggableScrollableSheet collapsing in several cases

I have a DraggableScrollableSheet, something like DraggableScrollableSheet( initialChildSize: 0, snap: true, snapSizes: _snapSizes

MaterialApp rebuild when Home widget calls build function

My app's MyApp widget, which returns MaterialApp (as done in virtually every Flutter app) is rebuild whenever the build function on the home widget is called. I

Flutter Could not get unknown property 'plugin' for project ':app' of type org.gradle.api.Project. Error

I am getting this error when running my Flutter app: Launching lib\main.dart on Android SDK built for x86 in debug mode... FAILURE: Build failed with an except

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

sending text and multiple images to whatsapp flutter on IOS its not workin

I want to send multiple images alongside the text on WhatsApp, the text is not a problem if it's going to be repeated on every image or just written once, curre

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 MapBox - Unhandled Exception: type 'Null' is not a subtype of type

I am just following this guide https://github.com/Imperial-lord/mapbox-flutter, In turn by turn navigation, getting error like 'Unhandled Exception: type 'Null'

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 post image to my server from Flutter?

I have a small server based on node JS, which communicates with Post Gre SQL database, and server is working on port 5000. I have route called uploadImage, whic

Flutter redux combined state dispatch action and update UI issue

I am learning redux. I have the following issues: My initial state does not seem to be taken into the account My actions are dispatched but they are not updatin