Skip to content

Latest commit

 

History

History
87 lines (45 loc) · 2.23 KB

File metadata and controls

87 lines (45 loc) · 2.23 KB

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