Sort list flutter

I'm looking for a simplest way to sort list based on given value instead of using two list. Example I have list <code>[a,b,c,d]</code>, with a given value <code...

Unhandled Exception: type _InternalLinkedHashMap&lt;String, dynamic&gt; is not a subtype of type List&lt;dynamic&gt;? in type cast

I am getting the data from firestore and storing the data as List, Since the data from the firestore is map i couldn't save it correctly and i am getting this error.</...

How to create a event list with day and hour using table calendar

So, The user have the calendar to select one day, after this he taps on the (+) button to create an event. Then, it shows the TimePicker to user select the event start...

How to Store Data from Firebase to Model class : Flutter

I want to store data into my Model class as List, here is my model Class code <pre><code>class BookingList { String bookingId; String userId; String vendorI...

Flutter : How to create a new list from http response and group it?

I want to create a new list of Type <code>List&lt;Map&lt;String, dynamic&gt;&gt;</code> Here's the HTTP response : <pre><code> [ { _id: { hour...

How to fetch arrays from a specific document in firestore and populate my local lists with that data in flutter?

Hello what I'm trying to do is just to populate a couple of lists that fill a <strong>DropdownButtonFormField()</strong> and the others according to what value is sele...

How to pass list data from a method to Stateful class in flutter?

I have a method divide called from a button inside my Stateful class. Once all items quantities are divided by the method, they are added to a list <code>n...

List is Empty (Flutter)

I am creating a List in Flutter and displaying it in a Column, When I Run it is just Empty and when I print the list it just prints an Array <pre><code>I/flutter (...

How to create a class of List of arrays and fetch data in flutter

I'm trying to build a class provider as a list of arrays in order to fetch the data from API, but I'm unable to find a sufficient way thats working in order to fetch t...

Adding List&lt;object&gt; to class

New programmer here, I'm trying to add a List object to a list within another class but it keeps giving me an error.I've been stuck on this problem for hours now <...

I have an array of items inside a list from firebase. I want to display those array elements inside my flutter app but I have failed

Inside of my firebase collection (which is a list elements) I have arrays as well. I am failing to display the elements inside the array in my flutter app. Here...

indexOf is red underlined

I tried to use <code>indexOf</code> in my code, but <code>indexOf</code> is red underlined and I don't know why... This is my function: <pre><code> void te...

How to access arrayList values through getter in another class by using Bloc - Flutter

I'm trying to get arrayList data into another class through getter with the help of <code>blocProvider</code> but here in another class it gives following error: <...

Flutter : ListDocument, how to remove duplicate documents according to its title

Let's say I have a class Document like this : <pre><code>class Document { String text; String title; String date; } </code></pre> I created a List of Do...

Flutter Images in a List (Flutter)

so I want to have a List/Array that contains images and where each image has his own title. The image and the title should be shown in tow different buttons and the ti...