toasty_snackbar

Creator: coderz1093

Last updated:

0 purchases

toasty_snackbar Image
toasty_snackbar Images

Languages

Categories

Add to Cart

Description:

toasty snackbar

toasty_snackbar #
An alert toast package to show snackbar easily. This package helps you to render a dynamic alert toast in your Flutter app
Support #
This package supports usage on both Android and iOS builds.
Adding to your flutter project #
Add toasty_snackbar as a dependency in your pubspec.yaml file
toasty_snackbar: ^0.0.1
copied to clipboard
Use the package #
Import the library in your dart file
import 'package:toasty_snackbar/toasty_snackbar.dart';
copied to clipboard
Example 1 #
@override
Widget build(BuildContext context) {
String title = "Alert Test Title";
String message =
"Lorem ipsum dolor sit amet. Qui quos perferendis qui harum voluptatem a dolorum minima est voluptas veritatis. Nam commodi unde quo adipisci itaque sed autem veritatis est mollitia quam. Est delectus ipsum et beatae quasi ea molestias voluptatibus quo Quis culpa ut atque consequatur sit explicabo iste ea natus cumque. Aut quia aliquam 33 nostrum tempora et voluptates quia.";
return Center(context.showToastySnackbar(title, message, AlertType.info);

);
}
}
copied to clipboard
or you can trigger with button
Example 2 #
ElevatedButton(
onPressed: () {
context.showToastySnackbar(title, message, AlertType.success);
},
child: const Text("Show Snackbar: Success"),
)
copied to clipboard
Check examples
Screenshots #

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.