Top 5 packages for every flutter developer
Packages are great when you want to use other code to solve your problem. Flutter and Dart ecosystems have many packages contributed by many developers across the world you can use packages to build an app quickly without having to develop everything from scratch. In this short article, I will be discussing some of the useful flutter and dart packages.
Riverpod
Riverpod is a powerful Reactive State-Management and Dependency Injection Framework, which solves problems with provider. which ensures the code testability & catches the error in compile-time instead of runtime.
It comes with 3 packages:
- Riverpod — pure riverpod
- Flutter Riverpod —it is built on top of riverpod specifically for flutter projects
- Hooks Riverpod — it also built on top of riverpod with some hooks
Freezed
Freezed is the code generation tool for immutable classes. which has a simple syntax and automatically does serialization/deserialization of your objects, unions classes, and many cool features. which saves you hours of time
Dio
Dio is a powerful HTTP client for flutter and dart which comes with the Interceptors, FormData, Request Cancellation, File Downloading, etc.
Sembast
Sembast (Simple Embedded Application Store database) is a NoSQL database that stores data on a single file and is loaded in memory when opened. it doesn’t depend on any plugin. it is purely 100% written in dart so works on all platforms.
Dartz
Dartz provides Functional Programming in Dart. and very useful in Exception handling & also Purify your Dart code using efficient immutable data structures, monads, lenses, and other FP tools.