toast_view

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

toast view

Flutter ToastView Plugin #




Usage #
1. Add library to your pubspec.yaml #
latest version:
dependencies:
toast_view: ^latest_version
copied to clipboard
2. Import library in dart file #
import "package:toast_view/toast_view.dart";
copied to clipboard
3. Wrap your app widget #
ToastView(
/// set toast style, optional
child:MaterialApp()
);
copied to clipboard
Tips:
If you happened error like: No MediaQuery widget found,
you can try to use this code
to include ToastView to your App.
MaterialApp(
builder: (BuildContext context, Widget? widget) {
return ToastView(child: widget);
},
);
copied to clipboard
4. Call method showToast #
showToast('content');

// position and second have default value, is optional

showToastWidget(Text('hello ToastView'));
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.