Fancy Snackbar
Fancy snackbar package lets you add a beautiful snackbar to your Flutter app.
Installation
- Add the latest version of package to your pubspec.yaml (and run
dart pub get
):
dependencies:
fancy_snackbar: ^0.0.1
- Import the package and use it in your Flutter App.
import 'package:fancy_snackbar/fancy_snackbar.dart';
Example
There are a number of properties that you can modify:
- message (Different type of message can put)
- logo (icons can modify)
- color
- textColor
- seconds
|
Usage
FancySnackbar.show(context, "Hi, I'm happy to use the Fancy Snackbar!",
logo: const Icon(Icons.done_all, color: Colors.white),
seconds: 05);
Next Goals
x
Add onTap for functions and Poistions of the snackbar. Now, you can specify the onTap and specify a function.