toast 0.0.3 toast: ^0.0.3 copied to clipboard
A Flutter Toast plugin.
Toast #
A Flutter Toast plugin.
Supported Platforms
- Android fix BadTokenException and no notification permission required
- IOS use https://github.com/scalessec/Toast-Swift
How to Use #
# add this line to your dependencies
toast: ^0.0.1
import 'package:toast/toast.dart';
Toast.show("Toast plugin app", duration: Toast.LENGTH_SHORT, gravity: Toast.BOTTOM);
property | description |
---|---|
msg | String (Not Null)(required) |
duration | Toast.LENGTH_SHORT or Toast.LENGTH_LONG (optional) |
gravity | Toast.TOP (or) Toast.CENTER (or) Toast.BOTTOM |
timeInSecForIos | int (only for ios) |