fluttertoast
android and ios toast library for flutter.
supported platforms
- android
- ios
how to use
import 'package:fluttertoast/fluttertoast.dart';
fluttertoast.showtoast(
msg: "this is center short toast",
toastlength: toast.length_short,
gravity: toastgravity.center,
timeinsecforios: 1,
backgroundcolor: colors.red,
textcolor: colors.white
);
property | description |
---|---|
msg | string (not null)(required) |
toastlength | toast.length_short or toast.length_long (optional) |
gravity | toastgravity.top (or) toastgravity.center (or) toastgravity.bottom |
timeinsecforios | int (only for ios) |
bgcolor | colors.red |
textcolor | colors.white |
preview images
Comments are closed.