toast 0.3.0 copy "toast: ^0.3.0" to clipboard
toast: ^0.3.0 copied to clipboard

Platformweb

A Flutter Toast plugin.

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);
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)

toast toast

License #

MIT License
273
likes
130
points
8k
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter Toast plugin.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins

More

Packages that depend on toast