presentation/widgets/common/async_common_button library
Classes
- AsyncCommonButton
-
A CommonButton wrapper that drives itself through
AsyncButtonStatus.loading/
success/erroraround an async onPressed callback — the state machine BackupRestorePanel and similar hand-rolled per-widget before this existed (FEAT-50). Ignores a tap while not AsyncButtonStatus.idle (a rapid double-tap can't start a second onPressed call, and a tap during the success/error cooldown is ignored too, not queued).
Enums
- AsyncButtonStatus
- AsyncCommonButton's current phase.