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
$ 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';
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,
);


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
