Category "dart"

Parsing Nested JSON give Unhandled Exception

I am trying to parse complex Nested JSON, I have multiple classes to get down the JSON nests. I am looking for the numbers from this JSON { "data": { "att

How to customize the hard wrap vertical line in Android Studio IDE for code formatting

When I apply "Format code" my lines of code automatically down line (many lines) even though my screen has enough space to display it on 1 line. I see it depen

The function can't be unconditionally invoked because it can be 'null' error shown while trying to get current user info from firebase Auth

Trying to get current user info after creating a new user but getting this error " The function can't be unconditionally invoked because it can be 'null' " whi

Take Multiple Picture Using Flutter Camera Plugin

I'm trying to take multiple photos using the camera plugin, am doing that inside a loop and I keep getting the error below: CameraException (CameraException(Pre

onPressed from MaterialButton were trigged when the page from initialRoute

There're two buttons from my WelcomeScreen, when this page is loaded, two buttons will be pressed automatically. two buttons were used by the external widget"Ro

Flutter WebView only gets content the first time

I have a WebView where I parse the Site-content after the user presses a Button. If loading the site for the first time (initUrl), I get all the correct data. H

How to execute dart generated javascript from dart

I have this dart script that I compiled to javascript. How do I go about calling this javascript from dart? I'm trying to eventually call this from a web worker

I want to implement only face authentication in flutter

In my application, I want to add a face unlock feature to unlock my application. but as I used local_auth package it takes both figure and face. Like, If the us

Flutter local caching when app is background

I have a background service listening socketio and showing me notification. I wanna cache to local that i take from socketio but packages dont support caching w

Nested Json Serialise with Custom Class

I have a JSON data from the server from which I want to add specific JSON data to another class but maintaining its instance in the parent class Json data from

TypeError when converting firebase data snapshot to map

I am currently following a Flutter tutorial and the instruction states that I retrieve data from Firestore and convert to a map, the tutorial uses the code belo

Search value in list

I want to search value in list: String search = 'blue Table15'; List list = [ {"Label": "blue Table 15", "V

How to solve flutter Execution failed for task ':twitter_login:compileReleaseKotlin' error?

I am trying to build an apk from my flutter application. I am using the algolia native api and modified my FlutterActivity according to this official documentat

How to solve flutter Execution failed for task ':twitter_login:compileReleaseKotlin' error?

I am trying to build an apk from my flutter application. I am using the algolia native api and modified my FlutterActivity according to this official documentat

Rename image that has been picked by imagepicker for flutter

I would like to rename the file that i already pick from my gallery by image picker, i already try the below method using renameAsync String dir = path.dirname(

how to change prettier format for react native

my code formatting prettier didn't works well for react native, i don't understand where to config it but it works well with flutter from this code import

'Size' is imported from both 'dart:ffi' and 'dart:ui' Flutter 3

After upgrading my flutter from 2.10.5 to 3.0.0, I have those errors on my android studio and the project don't build anymore on windows 10. How can I solve thi

How to Get Subcollection docs in Firestore Collection Group Query Flutter

I have a collection and Subcollection, I want to get the data of subcollection along with main collection data. I am using collectionGroup query, but don't know

Can you make complete apps using Flutter & Dart or just the UI part of an app?

I'm confused about what Flutter framework actually does, I know that it uses Dart and have heard that both of them can be used to create cross-platform apps. Bu

Is it okay to use an onPressed function in a ChangeNotifier child class

I am using provider for state management, and I've given onTap a value in a function in the ChangeNotifier child class but my app is unresponsive, I mean, when