Category "dart"

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

Flutter web: Opening direct URL navigation working on local but not after deployment

I am trying to implement Flutter web url navigation in my application. When I am trying to open http://localhost:7357/privacy-policy directly it is opening fine

A 2d list made from List.from(), updates the original list

I want to copy the elements of a 2D list into another list. Let the source list be List<List<int>> source, and the list to which I'm going to copy t

Flutter: The getter 'answers' isn't defined for the class 'List<Map<String, Object>>'

I am trying to access 'second' from the below: final basic_answers = const [ { 'questionText': 'Q1. Who created Flutter?', 'answers': [ {'first': 'Faceb

Passing model object as an argument with Flutter GetX

I need a model object on two screens. I have 2 questions: Is passing a model object (from one screen to another) required if we are using GetX? If yes, how do