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.
How should I create a button in flutter that shows a progress indicator before going to a new page?
Here is the button in question:
LateInitializationError: Field ‘sharedPreferences’ has not been initialized
i am trying to save user token when he is logging In but for some reason i keep getting this error and i added print statements at the start and end of my init() method to insure that the method is working correctly and they were both executed correctly
I want to replace part of the intiger number first number with 1 and next 4/5 numbers with 0
NEED DART HELP
Unable to force user to update on Android when using InappUpdate
i am using in_app_update to force use to update the app but i keep getting this error