toast
a flutter toast plugin.
how to use
# add this line to your dependencies
toast: ^0.1.4
import 'package:toast/toast.dart';
toast.show("toast plugin app", context, duration: toast.length_short, gravity: toast.bottom);
property | description |
---|---|
msg | string (not null)(required) |
context | buildcontext (not null)(required) |
duration | toast.length_short or toast.length_long (optional) |
gravity | toast.top (or) toast.center (or) toast.bottom |
textstyle | textstyle (default fontsize:15, color: colors.white) |
backgroundcolor | color (default color(0xaa000000)) |
backgroundradius | double (default 16) |
border | border (optional) |
Comments are closed.