Personalised Toast Library for Flutter

You are currently viewing Personalised Toast Library for Flutter
Toast Library for Flutter

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,
    );
  • Preview
See also  Customizable Flutter Toast Message Example

Learn about toast. click here

Credit

This project is developed by Mbouziani
Download this project from the below link.
https://github.com/Mbouziani/Toast_message-Flutter/archive/refs/heads/main.zip
You can visit the source page from the below link:
https://github.com/Mbouziani/Toast_message-Flutter

Spread the love

Leave a Reply