snappy_toast 1.0.1

SDKflutter
Platformandroidioswindowslinuxmacosweb

A lightweight, snappy toast and snackbar manager for Flutter. Show beautiful toast messages or stylish snackbars — without needing `BuildContext`, `Navigator`, or `Stack` setup.

Snappy Toast

A lightweight, snappy toast and snackbar manager for Flutter.
✨ Show beautiful toast messages or stylish snackbars — without needing BuildContext, Navigator, or Stack setup.


💡 Why Snappy Toast?

Avoid boilerplate code. Works outside widget tree or Navigator stacks. Clean overlay-based toast & snackbar manager.

🚀 Features

  • ✅ Show toast anywhere — without context!
  • 🪄 Snackbar support too — separate from toast
  • 🔔 Queue system with prioritization
  • 🎨 Multiple toast styles (minimal or detailed)
  • 📱 Configurable position (top, center, bottom)
  • 🧩 Custom icons, durations, and dismiss types
  • 💥 Optional haptic feedback
  • 🚫 Auto-dismiss and swipe-to-dismiss support

🛠 Installation

Add the dependency to your pubspec.yaml:

dependencies:
  snappy_toast: latest_version

🧪 Example Usage

1️⃣ Initialize

Wrap anywhere in your app with SmartSnackToastWrapper:

    void main() {
      runApp(const MyApp());
      }
    class MyApp extends StatelessWidget {
      const MyApp({super.key});
    
      @override
      Widget build(BuildContext context) {
        return MaterialApp(
          title: 'Smart FormX Demo',
          theme: ThemeData(primarySwatch: Colors.blue),
          home: SmartSnackToastWrapper(child: const SmartFormDemo()),
        );
      }
    }

✅ You don't need a navigatorKey or extra Stack.

2️⃣ Show a Toast

    SnappyToast.show(
      message: "Hello from toast!",
      type: ToastType.success,
      position: ToastPosition.bottom,
      );

3️⃣ Show a Snackbar

    SnappyToast.show(
        message: "This is a snackbar",
        type: ToastType.warning,
        duration: Duration(seconds: 3),
        );

🎛 Configurations

ParameterDescriptionDefault
typesuccess, error, warning, infoinfo
positiontop, center, bottom (toast only)bottom
styleminimal, detaileddetailed
dismissTypeswipe or onTapswipe
durationShow time2 seconds
customIconOverride the iconnull
priorityPriority in the toast queue0
hapticEnable haptic feedbackfalse
dismissAllRemove all previous toasts/snackbarsfalse

✨ Author

Made with ❤️ by Samuel & Atul