Top 5 Flutter Favorites Packages
Since Flutter has grown rapidly day-by-day. Here it this month tops 5 Favorites Flutter package on pub.dev.
1. sqflite:
Flutter plugin for SQLite, a self-contained, high-reliability, embedded, SQL database engine.
Description:
SQLite plugin for flutter. Supports iOS, Android, and macOS.
- Support transactions and batches
- Automatic version management during open
- Helpers for insert/query/update/delete queries
- DB operation executed in a background thread on iOS and Android
This plugin does not support the web. Check out more details below:
Package Details: https://flutterappworld.com/sqlite-plugin-for-flutter/
Pub: https://pub.dev/packages/sqflite
2. Connectivity:
About
Flutter plugin for discovering the state of the network (WiFi & mobile/cellular) connectivity on Android and iOS.
Details:
This plugin allows Flutter apps to discover network connectivity and configure themselves accordingly. It can distinguish between cellular vs WiFi connection. This plugin works for iOS and Android.
Note that on Android, this does not guarantee connection to Internet. For instance, the app might have wifi access but it might be a VPN or a hotel WiFi with no access.
Please set your constraint to connectivity: '>=0.4.y+x <2.0.0'
Check out the details below:
Package details: https://flutterappworld.com/connectivity-flutter-plugin-for-discovering-the-state-of-the-network/
Pub: https://pub.dev/packages/connectivity
3. flutter_mobx
About: Flutter integration for MobX. It provides a set of Observer widgets that automatically rebuild when the tracked observables change.
Details:
MobX for the Dart language. Hassle-free, reactive state-management for your Dart and Flutter apps.
MobX is a state-management library that makes it simple to connect the reactive data of your application with the UI. This wiring is completely automatic and feels very natural. As the application-developer, you focus purely on what reactive-data needs to be consumed in the UI (and elsewhere) without worrying about keeping the two in sync.
It’s not really magic but it does have some smarts around what is being consumed (observables) and where (reactions), and automatically tracks it for you. When the observables change, all reactions are re-run. What’s interesting is that these reactions can be anything from a simple console log, a network call to re-rendering the UI.
MobX has been a very effective library for the JavaScript apps and this port to the Dart language aims to bring the same levels of productivity.
Package Details: https://flutterappworld.com/mobx-for-the-dart-language/
Pub: https://pub.dev/packages/flutter_mobx
4. Sign in With Apple
About: Flutter bridge to initiate Sign in with Apple (on iOS, macOS, and Android). Includes support for keychain entries as well as signing in with an Apple ID.
Supported platforms
- iOS
- macOS
- Android
Package Details: https://flutterappworld.com/flutter-bridge-to-sign-in-with-apple/
Pub: https://pub.dev/packages/sign_in_with_apple
5. json_serializable
About: Automatically generate code for converting to and from JSON by annotating Dart classes.
Details:
The builders generate code when they find members annotated with classes defined in package:json_annotation.
- To generate to/from JSON code for a class, annotate it with
@JsonSerializable
. You can provide arguments toJsonSerializable
to configure the generated code. You can also customize individual fields by annotating them with@JsonKey
and providing custom arguments. See the table below for details on the annotation values. - To generate a Dart field with the contents of a file containing JSON, use the
JsonLiteral
annotation.
Package Details: https://flutterappworld.com/generates-utilities-to-aid-in-serializing-to-from-json/