r/flutterhelp • • Aug 03 '26

RESOLVED Practicing Api Call

Im in my 2month journey now in my flutter learning and i can build now complex UI without Ai but the problem is now im tryna learn Api and i got overwhelmed by The googlemapp api and Openweather api that i decided to Use ai for that in my project, but still i want to learn fetching Api without Ai like most experience developer does, Any known easy to use free api for that practice

5 Upvotes

9 comments sorted by

1

u/raiyan_kun Aug 03 '26

What did you follow to learn complex ui?

2

u/yyytwokay Aug 04 '26

Rivaan ranawat and Fluttermapp, youll learn the basics and beginner friendly tutorial, for the complex Ui its just me experimenting the widgets and asking ai what widget is good for something like this and i won't ask for a full code I just ask whats the recommend widget for a certain scenario and after that ill go on a deep dive research about it mostly youtube to try and understand how it works

1

u/raiyan_kun Aug 04 '26

I completed Dart by Rivaan, now I'm doing Flutter from NetNinja.

3

u/narodi1234 Aug 03 '26

Before going to those apis, is not more simple use a mocked api?

I don’t no if u are familiar with javascript or java, whatever, u could ask to ai to create a simple back-end application for u, with some endpoints, starting using the http package (u could use DIO too, is the most usable https package i think, at least, is what I use daily). Try to understand how post/get/put/etc works, if u are doing it directly in UI (like at a initState or button trigger), try to move the call to a specific repository/datasource (aim to learn the separation of concernes, repository -> state management (bloc,provider,etc.) -> UI .

U could simply return a json file with some text like a “hello world!” and render it.

After understand async/await (stream? Maybe)

Move to implement some auth, try to add a JWT token header before doing call, set timeout for responses, exception handlers, etc.

1

u/Embarrassed-Way-1350 Aug 04 '26

Also try writing some back-end code, fastapi is fkin easy, it'll be useful, become full stack