Skip to content
pubscout

snacky

0.8.0, released 7 months ago by impaktfull.com

Simple customizable snackbar widget for Flutter

WASM-ready
$ flutter pub add snacky
Source repository

What it does

Snacky provides a lightweight snackbar implementation with minimal configuration. It supports custom widgets, automatic duration calculation, and optional dismissal controls.

AI-written summary of version 0.8.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Need quick, non‑intrusive notifications
  • Want a top or bottom snackbar without boilerplate
  • Require custom content or actions inside the snackbar
  • Need to cancel or queue snackbars programmatically

Skip it when

  • Building a full‑featured notification system with push support
  • Requiring extensive theming or complex animation pipelines

Strengths

  • Minimal setup, just wrap MaterialApp with SnackyConfiguratorWidget
  • Highly configurable: duration, transition, location, padding, margin
  • Supports custom widgets via Snacky.widget
  • Built‑in cancellation and queue management

Weaknesses

  • No automated tests documented
  • Limited theming options compared to larger UI kits
  • Documentation focuses on basic usage; advanced customization may need digging into source

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Wrap your MaterialApp with SnackyConfiguratorWidget and optionally add SnackyNavigationObserver to auto‑dismiss on navigation.

SnackyConfiguratorWidget(
  app: MaterialApp(
    home: Scaffold(
      appBar: AppBar(title: Text('Snacky Demo')),
      body: Center(
        child: ElevatedButton(
          onPressed: () {
            final snacky = Snacky(
              title: 'Hello',
              type: SnackyType.info,
              showDuration: Duration(seconds: 3),
            );
            SnackyController.instance.showMessage((context) => snacky);
          },
          child: Text('Show Snacky'),
        ),
      ),
    ),
  ),
);

Alternatives

Packages that do the same job and could replace snacky.

  • fluttertoast

    Provides simple toast notifications with minimal API, suitable for quick alerts when full snackbar features are unnecessary.

Works with

Packages commonly used together with snacky: ones it builds on, ones built on it, and its own family.