action_flow

action_flow is a lightweight Flutter library that provides a unified and configurable pipeline for executing user-triggered actions, such as button clicks or list item taps.

It allows actions to be processed through a series of interceptors before execution, enabling common concerns like debouncing, analytics tracking, and conditional guards (e.g. permissions or paywalls) to be handled consistently across an app.

Features

  • Action execution pipeline with interceptor support
  • Pluggable interceptors (debounce, analytics, guards, etc.)
  • Centralized action runner initialization
  • Optional UI wrappers for reducing boilerplate
  • No dependency on business logic or app-specific state

Basic Usage

Initialize the action runner

ActionRunner.init(
  ActionPipeline([
    DebounceInterceptor(),
    // Custom interceptors can be added here
  ]),
);

Libraries

action_flow