Тёмный

Flutter BLoC Pattern With Rest API 

Coding Orbit
Подписаться 4 тыс.
Просмотров 11 тыс.
50% 1

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 B...
Links:
Don't click this: bit.ly/3dkJUNB
Quotes API website: api.quotable.io/random
Consume rest API in flutter: • Flutter Consume Rest A...
------------ 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

Опубликовано:

 

3 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 16   
@codingorbit
@codingorbit 2 года назад
Hey Guys you can find the source code on GitHub here: github.com/Coding-Orbit/flutter_consume_api_bloc.git
@sobirtojiyev4631
@sobirtojiyev4631 2 года назад
Very useful for me :) thanks
@codingorbit
@codingorbit 2 года назад
My pleasure!
@nguyenvanmanh1368
@nguyenvanmanh1368 2 года назад
thank you, very good and it helps me to understand, i have a question. If I have many other features, I will also create multiple bloc folder and repository folder by each feature?
@codingorbit
@codingorbit 2 года назад
Yes definitely each feature has its own events, states and bloc. You can have common repositories among several blocs
@nguyenvanmanh1368
@nguyenvanmanh1368 2 года назад
@@codingorbit thanks you
@nguyenvanmanh1368
@nguyenvanmanh1368 2 года назад
@@codingorbit should i put models folder in each feature?
@codingorbit
@codingorbit 2 года назад
@@nguyenvanmanh1368 It's up to you, you can have one directory for all models in the app or separate model directory for each feature
@aptimyzeteam3271
@aptimyzeteam3271 2 года назад
Do you have repo where this code is stored ?
@codingorbit
@codingorbit 2 года назад
Yeah sure I will pin it today
@faizulla5838
@faizulla5838 Год назад
how rhis is Rest .... not to json????
@codingorbit
@codingorbit Год назад
I'm not sure I understand
@faizulla5838
@faizulla5838 Год назад
@@codingorbit I think Rest API is to CRUD....and REST API will have fromJson and toJson.... Are I have mistake????
@codingorbit
@codingorbit Год назад
The idea of this video is to connect any rest api with bloc state management pattern
@faizulla5838
@faizulla5838 Год назад
@@codingorbit Yes...good. I need video to CRUD API + BloC...+Repository... verry hard need. meiby You are did it ....naw ))), why not??? ,😃
@codingorbit
@codingorbit Год назад
This video helps you achieve what you want but with some modifications
Далее
Flutter Local Database Using sqfLite
20:51
Просмотров 34 тыс.
Bloc Library - Painless State Management for Flutter
24:54
I'm Excited To see If Kelly Can Meet This Challenge!
00:16
🎸РОК-СТРИМ без ФАНЕРЫ🤘
3:12:10
Просмотров 1,4 млн
Water powered timers hidden in public restrooms
13:12
Просмотров 737 тыс.
Flutter Bloc & Cubit Tutorial
47:58
Просмотров 120 тыс.
BLoC Pattern with Flutter || State Management (Part 2)
27:04
GetX State Management tutorial with Flutter 😍
38:13
Просмотров 135 тыс.
Flutter Local Notifications
18:49
Просмотров 42 тыс.
BLoC Pattern with Flutter || State Management
22:50
Просмотров 95 тыс.
I'm Excited To see If Kelly Can Meet This Challenge!
00:16