TOP 5 Useful and Interesting Flutter/Dart Packages #1
Hello everyone in this story I’m going to share 5 pub.dev packages which I’m using very much. This is the first part of this topic, I’ll continue to list some packages regularly.
1. loading_gifs
Loading GIFs is a collection of high fidelity loading animations in GIF format. Included are Android “Material Design” and iOS “Cupertino” default loading indicators.
Usage :
FadeInImage.assetNetwork(placeholder: cupertinoActivityIndicator, image: "image.png");
Examples :
2. enough_ascii_art
An ASCII art library for Dart developers.
Things you can do with enough_ascii_art
:
- Generate a textual representation of an image using
convertImage(..)
. - Convert common UTF-8 emoticons to their text-representation with
convertEmoticons(..)
. - Create FIGlet text banners with
renderFiglet(..)
.
Usage :
enough.jpg :
var image = img.decodeImage(File('./example/enough.jpg').readAsBytesSync());
var asciiImage = convertImage(image, maxWidth: 40, invert: true);
print('');
print(asciiImage);
Output :
%%%%%%%%%%%%%%%%%%@%@%#%#%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%## -@%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%. .#%%%%%%%%%%%
%%%%%%%%%%%%%%%%%# #%%%%%%%%%%%
%%%%%%%%%%%%%%%%#@ %%%%%%%%%%%
%%%%%%%%%%%%% #* # @ %%%%%%%%%%%
%%%%%%%%%%%%%%- * =% #%%%%%%%%%%
%%%%%%%%%%%%%%@# *% .#%%%%%%%%%
%%%%%%%%%%%%%%%%- .@%% %%%%%%%%
%%%%%%%%%%%%%%%= @%%@ #%%%%%
%%%%%%%%%%%%%%# #%%= ##%%
%%%%%%%%%%%%%%%. . #%
%%%%%%%%%%%%%%%%@ *
%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%% #
%%%%%%%%%%%%%%%%%%%%%%- +%%
%%%%%%%%%%%%%%%%%%%%%%%. %%%
%%%%%%%%%%%%%%%%%%%%%%%. :%%%%
%%%%%%%%%%%%%%%%%%%%%%. +@%%
%%%%%%%%%%%%%%%%%%%%%% +%%%%%@ @%%
%%%%%%%%%%%%%%%%%%%%%. @%%%%%# %%
%%%%%%%%%%%%%%%%%%%%% #%%%%%@ %%
%%%%%%%%%%%%%%%%%%%%%%- -%%%%%% %%
3. flutter_gradients
A curated collection of awesome gradients made in Dart (port of https://webgradients.com for Flutter). Only linear gradients included for now.
Usage :
Container(
width: 150,
height: 150,
decoration: BoxDecoration(
shape: BoxShape.circle,
gradient: FlutterGradient.warmFlame(),
),
);
Examples :
4. package_info
This Flutter plugin provides an API for querying information about an application package.
Usage :
import 'package:package_info/package_info.dart';
PackageInfo packageInfo = await PackageInfo.fromPlatform();
String appName = packageInfo.appName;
String packageName = packageInfo.packageName;
String version = packageInfo.version;
String buildNumber = packageInfo.buildNumber;
5. flutter_spinkit
A collection of loading indicators animated with flutter. Heavily inspired by @tobiasahlin’s SpinKit.
Usage :
const spinkit = SpinKitRotatingCircle(
color: Colors.white,
size: 50.0,
)
Examples :
Thank you for reading, follow me to be notified on a new story.