animated_toast_list
2.0.0, released 5 weeks ago by snowyday.site
A dependency‑free toast list widget for Flutter
What it does
Wrap your app with ToastListOverlay and call context.showToast to display custom toasts that stack, animate and auto‑hide. The toasts stay above every screen and can be any widget you build.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- Need lightweight, dependency‑free toast system
- Want full control over toast appearance and animation
- Need to show multiple toast types or persistent toasts
- Require toasts that survive navigation changes
Skip it when
- You need built‑in styling or theme integration
- You already use a comprehensive toast package like toastification or bot_toast
Strengths
- No external dependencies beyond Flutter
- Fully customizable toast widgets
- Supports persistent and timed toasts
- Handles navigation and nested navigators gracefully
Weaknesses
- No built‑in styles – you must design the toast yourself
- Limited to simple toast logic – no advanced features like queues or priority
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Add ToastListOverlay around your MaterialApp and call context.showToast from any descendant widget.
```dart
ToastListOverlay<MyToastModel>(
itemBuilder: (context, item, index, animation) => ToastItem(animation: animation, item: item),
child: MaterialApp(
home: const MainScreen(),
),
);
// Show a toast
context.showToast(MyToastModel('Saved', ToastType.success));
```Alternatives
Packages that do the same job and could replace animated_toast_list.
- toastification
Provides ready‑made toast styles, themes, and advanced features like queueing and auto‑dismiss options.
91Compare - fluttertoast
Simple API for quick toasts but less flexible for custom widgets.
85Compare - bot_toast
Offers rich customization and built‑in animations but adds a dependency.
50Compare