Android Toast Plugin for Flutter
Branch: master
Clone or download
Latest commit e7d0e4f Feb 20, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode bug fixes Nov 6, 2018
android ## [3.0.1] Feb 20, 2019
example ## [3.0.1] Feb 20, 2019
ios ios notch fix Feb 20, 2019
lib 2.2.8 Jan 25, 2019
res/values *iOS Color Fix Dec 1, 2018
screenshot v2.0.8 Sep 28, 2018
.gitignore changes Jan 23, 2019
CHANGELOG.md ## [3.0.1] Feb 20, 2019
LICENSE bug fixes Nov 6, 2018
README.md ## [3.0.1] Feb 20, 2019
fluttertoast.iml Initial Commit Apr 8, 2018
fluttertoast_android.iml bug fixes Nov 6, 2018
pubspec.yaml ## [3.0.1] Feb 20, 2019

README.md

fluttertoast

Android and iOS Toast Library for Flutter

Supported Platforms

  • Android
  • IOS

If you dont want to use androidx then use fluttertoast version 2.2.12

How to Use

# add this line to your dependencies
fluttertoast: ^3.0.1
import 'package:fluttertoast/fluttertoast.dart';
Fluttertoast.showToast(
        msg: "This is Center Short Toast",
        toastLength: Toast.LENGTH_SHORT,
        gravity: ToastGravity.CENTER,
        timeInSecForIos: 1,
        backgroundColor: Colors.red,
        textColor: Colors.white,
        fontSize: 16.0
    );
property description
msg String (Not Null)(required)
toastLength Toast.LENGTH_SHORT or Toast.LENGTH_LONG (optional)
gravity ToastGravity.TOP (or) ToastGravity.CENTER (or) ToastGravity.BOTTOM
timeInSecForIos int (only for ios)
bgcolor Colors.red
textcolor Colors.white
fontSize 16.0 (float)

To cancel all the toasts call

Fluttertoast.cancel()

Preview Images

If you need any features suggest