toast

Creator: coderz1093

Last updated:

Add to Cart

Description:

toast

Toast #
A Flutter Toast plugin.

How to Use #
# add this line to your dependencies
toast: ^0.2.9
copied to clipboard
import 'package:toast/toast.dart';
copied to clipboard
ToastContext.init(context);
copied to clipboard
Toast.show("Toast plugin app", duration: Toast.lengthShort, gravity: Toast.bottom);
copied to clipboard



property
description




msg
String (Not Null)(required)


duration
Toast.lengthShort or Toast.lengthLong (optional)


gravity
Toast.top (or) Toast.center[not supported on web] (or) Toast.bottom


textStyle
TextStyle (default fontSize:15, color: Colors.white)


backgroundColor
Color (default Color(0xAA000000))


backgroundRadius
double (default 16)


border
Border (optional)





License #
MIT License
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.