flutter_snackbox 1.0.0 copy "flutter_snackbox: ^1.0.0" to clipboard
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 #

  1. Add the latest version of package to your pubspec.yaml (and rundart pub get):
dependencies:
  flutter_snackbox:
  1. Import the package and use it in your Flutter App.
import 'package:flutter_approuter/flutter_snackbox.dart';
  1. 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 #

#

  1. Push(Page)
        appRouter.push(HomeScreen());
    
  2. Pop()
        appRouter.pop();
    
  3. pushNamed(String route)
        appRouter.pushNamed(route);
    
  4. 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.

4
likes
0
pub points
0%
popularity

Publisher

unverified uploader

show snackBar made easy, display snackBar without buildContext with pure dart code.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_snackbox