How to perform a search in array of object flutter?

I am having a Map list with key and values, for example : <pre><code>map&lt;String, dynamic&gt; my_List = [{name: mike, age: &q...

Flutter how to find how many values map has

I have an API, every time when I call it. It returns with a different number of keys. Sometimes: <pre><code>{ json:[ example&quot...

Flutter - Map function inside Future method

How can I run a map function inside a Future method? This is my code: <pre><code>Future deactivateLogs(List&lt;String&gt; members) async { return members....

Dart - Read Keys and Values from a Map inside a Map

I have a variable with the following structure: <pre><code>final Map&lt;String, Map&lt;double, String&gt;&gt; ingredients; </code></pre> I need to access, as st...

Flutter How do I iterate over each item in a ListView?

I'm new to flutter and have created a simple app to display some custom List Tiles. In each tile, it's possible to increase or decrease the count by the + and - button...

Flutter: generic list handles different key, value pairs

I have a class that has a generic List as property, that I have to initialize, and that has a function that returns a card using that list: <pre><code>class buil...

who to iterate mixed List and Map and object in dart and flutter

how can i iterate bello list and show it in my structure? <pre><code>List courses = [ {'course 1':{'p':['course 0'],'need':[],'v':3}}, {'course 2':{'p':[],'nee...

Looping in Flutter inside ListView

In my app I have a list view with checkboxes. My code: <pre><code> body: Column(children: [ Expanded( child: MasonryGridView.count(...

Get the lenght of a List&lt;dynamic&gt; in flutter

I'm working with a JSON like that: <pre><code>{results: success, data: {total: 250, currentlyAvailable: 250, bestTimeToGo: 22, forecasts: [{hour: 21, available: 2...

Flutter - How to get value return in my future builder text widget in body

Am trying to get the distance two coordinate in a future build which was successful but am looking for how to get the value returned "kmDis" in Text() widget in body:...

How can i fix flutter app stuck in loading screen?

I'm working on a project(as a student) about writing a dictionary application. And now my code can run without an error but my app is stuck in a loading screen loop. P...

Flutter Unable to update List&lt;Map&lt;&gt;&gt; datatable onSelectChanged

Please help - and be patient i am still learning - I have a model with constant data (until I implement my API) that provides Order data <pre><code>class Orders {...

how to flutter convert maps to String

hello i get data in sqlite code : <pre><code>getuserIDPW(String email) async{ final db = await database; var res = await db.query("person",columns: ['emai...

check if the map has a specific string in its keys, then give me its value, that belong this key, Dart

may i ask how to check if the map of String,String has in it's keys a specific String then i want to get the value that belong this specific key that contains the targ...

Convert Map to json String flutter

I am new to dart, trying to convert Map to json String for sqflite, <code>json.encoder</code> and <code>jsonEncode</code> doesn't work. i tried to use <code>json_seria...