fluttertoast 2.2.6

Flutter Android iOS

Toast Library for FLutter

fluttertoast #

Android and iOS Toast Library for Flutter

Supported Platforms

  • Android
  • IOS

If your project uses androidx then use fluttertoast version 2.2.4 or 2.2.5

How to Use #

# add this line to your dependencies
fluttertoast: ^2.2.6
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
    );
propertydescription
msgString (Not Null)(required)
toastLengthToast.LENGTH_SHORT or Toast.LENGTH_LONG (optional)
gravityToastGravity.TOP (or) ToastGravity.CENTER (or) ToastGravity.BOTTOM
timeInSecForIosint (only for ios)
bgcolorColors.red
textcolorColors.white

Preview Images #