asyncredux-events
SKILL.md
Events in AsyncRedux
Events are single-use notifications used to trigger side effects in widgets. They're designed for controlling native Flutter widgets like TextField and ListView that manage their own state through controllers.
When to Use Events
Use events for:
- Controller actions: Clearing text, changing text, scrolling lists, focusing inputs
- One-off UI actions: Showing dialogs, snackbars, triggering animations
- Implicit state changes: Navigation, any action that should happen exactly once
Do NOT use events for:
- Values that need to be read multiple times (use regular state instead)
- Data that should be persisted (events should never be saved to local storage)
Setup: Add context.event() Extension
Add the event method to your BuildContext extension: