Dismissible Toast

A Flutter Dismissible Toast plugin.

How to Use

# add this line to your dependencies
toast: ^0.0.1
import 'package:dismissible_toast/dismissible_toast.dart';
DismissibleToast.show("DismissibleToast plugin app", context, duration: DismissibleToastConstants.lengthShort, gravity: DismissibleToastConstants.bottom);
propertydescription
msgString (Not Null)(required)
contextBuildContext (Not Null)(required)
durationDismissibleToastConstants.lengthShort or DismissibleToastConstants.lengthLong (optional)
gravityDismissibleToastConstants.top (or) DismissibleToastConstants.center (or) DismissibleToast.bottom
textStyleTextStyle (default fontSize:15, color: Colors.white)
backgroundColorColor (default Color(0xAA000000))
backgroundRadiusdouble (default 16)
borderBorder (optional)
backgroundRadiusdouble (default 16)
borderBorder (optional)
paddingEdgeInsert (optional) (default EdgeInsets.fromLTRB(16, 10, 16, 10))
marginEdgeInsert (optional) (default EdgeInsets.symmetric(horizontal: 20))

Libraries

dismissible_toast