Demo Bloc Flow
Project này dùng để demo data flow trong BLOC. Video demo:
bloc_demo.mov
- Thư mục Bloc
counter_event
: Khai báo các actions để thao tác với Bloccounter_state
: Khai báo initial state của Bloccounter_bloc
: implement các thao tác được bắn ra từcounter_event
- Lắng nghe và thay đổi state của Bloc từ màn hình
home_screen
: Thao t với counter
account_screen
: Lắng nghe data từcounter_bloc
bằngBlocBuilder