Relative Content

Tag Archive for flutterdart

Showing void api result with listview builder

well i have a little problem with the listview builder , i make a request on a api and i am upposed to display the result depending on the length of the result, it works very well but when i have no data from the api, i have this message from flutter : no suchMethosError:”map” Dynamic call with incorrect number of type arguments Expected 2 actual 1 Receiver instance of ‘jsonMap’ Arguments:[instance of dynamic)=> historique]

Showing void api result with listview builder

well i have a little problem with the listview builder , i make a request on a api and i am upposed to display the result depending on the length of the result, it works very well but when i have no data from the api, i have this message from flutter : no suchMethosError:”map” Dynamic call with incorrect number of type arguments Expected 2 actual 1 Receiver instance of ‘jsonMap’ Arguments:[instance of dynamic)=> historique]

Showing void api result with listview builder

well i have a little problem with the listview builder , i make a request on a api and i am upposed to display the result depending on the length of the result, it works very well but when i have no data from the api, i have this message from flutter : no suchMethosError:”map” Dynamic call with incorrect number of type arguments Expected 2 actual 1 Receiver instance of ‘jsonMap’ Arguments:[instance of dynamic)=> historique]

Showing void api result with listview builder

well i have a little problem with the listview builder , i make a request on a api and i am upposed to display the result depending on the length of the result, it works very well but when i have no data from the api, i have this message from flutter : no suchMethosError:”map” Dynamic call with incorrect number of type arguments Expected 2 actual 1 Receiver instance of ‘jsonMap’ Arguments:[instance of dynamic)=> historique]

How to make the ingredient list align at the center while keeping the current layout

Based on the photo and code below, how do I make the ingredient list align at the center along with the ingredients title? I tried using custom width for both of the SizedBox for the ingredients, but it doesn’t work well for different ingredients. How do I take the maximum length for the current ingredient to set the width? or any other solutions are welcome. 🙏 🤗

my app is paused when i call a function that make an http request

there is something wrong with my code, i have a function with an http request to retrieve datas of my users and display it, but each time i call it i have a pause on my app, and this message :Sends an HTTP POST request with the given headers and body to the given URL.