Skip to content

impaktfull/flutter_snacky

Repository files navigation

Logo

pub package publish to github pages live_demo

You deserve a simple snack!

A lot of the current snackbar & toast libraries are too complicated for simple use cases. Snacky is a simple library that lets you show a snackbar with minimal setup and an easy-to-use API — while still giving you full control when you need it.

📚 Documentation

Full documentation lives at docs.page/impaktfull/flutter_snacky.

It covers installation, every option, theming with builders, responsive layout, the queue & controller, navigation handling, and the architecture & design decisions behind Snacky.

Demo

Live web demo

snacky_preview.mp4

Quick start

Wrap your app once:

@override
Widget build(BuildContext context) {
  return SnackyConfiguratorWidget(
    app: MaterialApp(
      // Optional: close snackies on push/replacement
      navigatorObservers: [
        SnackyNavigationObserver(),
      ],
      home: const HomeScreen(),
    ),
  );
}

Then show a snacky from anywhere:

SnackyController.instance.showMessage(
  (context) => const Snacky(
    title: 'Saved!',
    subtitle: 'Your changes have been stored.',
    type: SnackyType.success,
  ),
);

See the Quick Start guide for the full walkthrough, and Showing Snackies for every option.

License

See LICENSE.

About

Easily display customizable snackbars in Flutter with minimal configuration. Ideal for quick notifications and alerts in your app.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors