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):

         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):

              msg: "Put your Toast Message here",
              toastLength: Toast.LENGTH_SHORT,
              gravity: ToastGravity.CENTER,
              //position of toast
              timeInSecForIosWeb: 1,
              textColor: Colors.white,
              fontSize: 16.0,
  • Preview

| | |


View Github