A Flutter Toast Plugin Example

You are currently viewing A Flutter Toast Plugin Example
Flutter Toast Plugin

Toast

A Flutter Toast plugin.

pub package

How to Use

# add this line to your dependencies
toast: ^0.3.0
import 'package:toast/toast.dart';
ToastContext().init(context);
Toast.show("Toast plugin app", duration: Toast.lengthShort, gravity:  Toast.bottom);
propertydescription
msgString (Not Null)(required)
durationToast.lengthShort or Toast.lengthLong (optional)
gravityToast.top (or) Toast.center[not supported on web] (or) Toast.bottom
textStyleTextStyle (default fontSize:15, color: Colors.white)
backgroundColorColor (default Color(0xAA000000))
backgroundRadiusdouble (default 16)
borderBorder (optional)
toast
toast

License

MIT License

Learn about toast. click here

Credit

This project is developed by appdev
Download this project from the below link.
https://github.com/appdev/FlutterToast/archive/refs/heads/master.zip
You can visit the source page from the below link:
https://github.com/appdev/FlutterToast

Spread the love
See also  Dart Toast Library for Flutter

Leave a Reply