Show beautiful Snack bar and display messages for:
- Success
- Error
- Warning
- Info
DEMO
USAGE
//define
final snackBar = simpleSnackBar(
//required
buildContext: context,
//required
messageText: "This is an info",
backgroundColor: Colors.white,
displayDismiss: false,
textColor: Colors.black,
snackBarType: SnackBarType.info);
//display
ScaffoldMessenger.of(context).showSnackBar(snackBar);
Libraries
- simple_snackbar
- Support for doing something awesome.