Skip to content

k-kaundal/bloc_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bloc Example

Equatable

https://pub.dev/packages/equatable

Equatable version used in this project:- equatable: ^2.0.3

Equatable overrides == and hashCode for you so you don't have to waste your time writing lots of boilerplate code.

There are other packages that will actually generate the boilerplate for you; however, you still have to run the code generation step which is not ideal.

With Equatable there is no code generation needed and we can focus more on writing amazing applications and less on mundane tasks.

Usage

First, we need to do add equatable to the dependencies of the pubspec.yaml

dependencies: equatable: ^2.0.0 Next, we need to install it:

Dart

pub get

Flutter

flutter packages get Lastly, we need to extend Equatable

Bloc:

https://pub.dev/packages/flutter_bloc

Widgets that make it easy to integrate blocs and cubits into Flutter. Built to work with package:bloc.

Bloc version used in this project:-

flutter_bloc: ^8.0.1

Dio:

https://pub.dev/packages/dio

A powerful Http client for Dart, which supports Interceptors, Global configuration, FormData, Request Cancellation, File downloading, Timeout etc.

Dio version used in this project:- dio: ^4.0.4

Screenshots

Home

AllEmployees

Profile

Error AllEmployees

Profile Error

Chat Screen

Status Screen

Settings Page

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published