m_toast 0.1.4 copy "m_toast: ^0.1.4" to clipboard
m_toast: ^0.1.4 copied to clipboard

outdated

Custom Toast for flutter, easily create toast with one line of code.

MToast #

pub package pub package

Toast Library for Flutter

Supported Platforms #

  • Android
  • IOS
  • Android
  • Linux
  • MacOS
  • Windows

How to Use #

# add this line to your dependencies
m_toast: ^0.1.4
import 'package:m_toast/m_toast.dart';

To call the toast #

ShowMToast toast = ShowMToast();

toast.successToast(context, message: "Hello");
toast.errorToast(context, message: "Hello");

Preview Images #

Toast with custom images #

MToast have default style, and you also can custom style or other behavior.

name type need desc
message String required Toast message
textColor Color optional Color of text(toast message)
backgroundColor Color optional backgroundColor
alignment ToastPosition required
iconColor Color optional If Color is not given the icon will adapt the default color
icon IconData optional Icon in Toast
image AssetImage optional Image instead of Icon
duration int optional Duration should be given in milliseconds(for eg duration: 1500)

If you need any features suggest #

...

39
likes
0
pub points
86%
popularity

Publisher

verified publisherabdulmanafpfassal.com

Custom Toast for flutter, easily create toast with one line of code.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on m_toast