flutter_snackbox 1.0.0 flutter_snackbox: ^1.0.0 copied to clipboard
show snackBar made easy, display snackBar without buildContext with pure dart code.
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 #
- ✅ ShowSnackBar without BuildContext
- ✅ showSnackBar
Example #
showSnackBar("<message>")
AppRouter without BuildContext #
#
- Push(Page)
appRouter.push(HomeScreen());
- Pop()
appRouter.pop();
- pushNamed(String route)
appRouter.pushNamed(route);
- pushOffAll(Widget page)
appRouter.pushOffAll(page);
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.