Toast Library for Flutter, Easily create toast messages in single line of code
Create Toast messages on a Flutter Event. fluttertoast: ^8.0.8
Toast Library for Flutter, Easily create Personalised toast messages in single line of code
Getting Started
-
Download this package as a library
-
Depend on it Run this command:
$ flutter pub add fluttertoast
-
This will add a line like this to your package’s pubspec.yaml (and run an implicit flutter pub get):
dependencies: fluttertoast: ^8.0.8
-
Import it Now in your Dart code, you can use:
import 'package:fluttertoast/fluttertoast.dart';
-
-
How to Use this Packege
- Basic usage (to create an SVG rendering widget from an asset):
Fluttertoast.showToast( msg: "Put your Toast Message here", //message toastLength: Toast.LENGTH_SHORT, //timeshow gravity: ToastGravity.CENTER, //position of toast timeInSecForIosWeb: 1, backgroundColor: Colors.red, textColor: Colors.white, fontSize: 16.0, );
- Basic usage (to create an SVG rendering widget from an asset):
-
Preview