Hey Guys, in this Flutter video I will show you how to consume rest API in your Flutter app using the BLoC pattern. You will not learn how to call an API the easy way, instead, you will learn the best practices to call and handle an API response using bloc pattern.
You will also learn how to handle bloc events and states that when an event is invoked yield a proper state and show the corresponding UI for that state.
Learn to consume rest API step by step in Flutter using the BLoC pattern.
For more Flutter content be sure to subscribe to the channel and turn on your notifications.
Check out Flutter how-to videos:
• Flutter Google Ads
Check out my Flutter tutorial to become a Flutter hero: • Flutter Tutorial for Beginners 1 - I...
Links:
Don't click this: https://bit.ly/3dkJUNB
Quotes API website: https://api.quotable.io/random
Consume rest API in flutter: • Flutter Consume Rest API With Best Pr...
------------ Content of this video ------------
00:00 Demo of the finished app
00:40 Setting up our project
01:50 Adding the model
03:12 Creating the repository
04:20 Implementing Bloc events, states, and the bloc itself
09:39 Implementing the UI
14:12 Testing the app
#flutter #flutter_bloc_pattern #flutter_rest_api #flutter_consume_rest_api
Watch video Flutter BLoC Pattern With Rest API online, duration hours minute second in high quality that is uploaded to the channel Coding Orbit 21 March 2022. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 10,998 times and liked it 162 visitors.