Toast

A Flutter Toast plugin.

pub package

How to Use

# add this line to your dependencies
toast: ^0.2.9
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.centernot 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

Libraries

generated_plugin_registrant
toast
toast_web