Flutter Snackbox
- show snackBar made easy, display snackBar without buildContext with pure dart code.
Installation
- Add the latest version of package to your pubspec.yaml (and run
dart pub get
):
dependencies:
flutter_snackbox:
- Import the package and use it in your Flutter App.
import 'package:flutter_approuter/flutter_snackbox.dart';
- Add snackbarKey in Material App for snackBar without BuiltContext
MaterialApp(
snackbarKey: snackbarKey,
...
)
Supported Devices
- Android
- IOS
- Linux
- Windows
- Macos
Features
x
ShowSnackBar without BuildContextx
showSnackBar
Example
showSnackBar("<message>")
Contributions
If you find a bug or want a feature, but don't know how to fix/implement it, please fill an issue.
If you fixed a bug or implemented a feature, please send a pull request.