TOP FLUTTER LIBRARIES USED BY DEVELOPERS
A library is a set of subprograms utilized in code development. Libraries contain adjunct code and information, that provides standalone program services, letting the standard sharing and modification of code and information (Wikipedia explanations).
In this article, I will tell 6 most useful flutter libraries which every flutter should know.
1. fl_chart
Flutter provides an incredible library for drawing graphics in Flutter. It has a lot of helpful graphs, like bar, line and pie charts.
You can find complete documentation and sample project by clicking here.
2. url_launcher
Using the url_launcher plugin you can open any URL through predefined schemes and then you can perform various functions from it in an application, this plugin supports in Android and iOS.
You can find complete documentation and sample project by clicking here.
3. dio
Dio is a HTTP connection library. When you need to do something advanced like Interceptors, HTTP error handling, Global configuration, FormData, Request Cancellation. This may be done by using Dio.
import 'package:dio/dio.dart'; void getHttp() async { try { Response response = await Dio().get("http://www.google.com"); print(response); } catch (e) { print(e); } }
You can find complete documentation and sample project by clicking here.
4. path_provider
Using this plugin you can easily find the location of the file and use it as you need this plugin supports both Android and iOS.
Directory tempDir = await getTemporaryDirectory(); String tempPath = tempDir.path; Directory appDocDir = await getApplicationDocumentsDirectory(); String appDocPath = appDocDir.path;
You can find complete documentation and sample project by clicking here.
5. package_info
This is a very useful plugin for developers, you can find the application version information, it works on both Android and iOS.
PackageInfo.fromPlatform().then((PackageInfo packageInfo) { String appName = packageInfo.appName; String packageName = packageInfo.packageName; String version = packageInfo.version; String buildNumber = packageInfo.buildNumber; });
You can find complete documentation and sample project by clicking here.
6. rxdart
Flutter rxdart is a reactive functional programming library for Google Dart based on ReactiveX. For more details about it please visit http://reactivex.io/ .
You can find complete documentation and sample project by clicking here.