loadable_buttons 1.0.1
loadable_buttons: ^1.0.1 copied to clipboard
Provides enhanced buttons with built-in loading states, async functionality and customizable transitions.
1.0.1 #
Bug fixes for the existing Flutter Material API. Public constructors and consumer SDK requirements are unchanged.
Fixed #
- Keep external
loadingand pendingonPressedoperations independent in all button families. Clearing external loading no longer unlocks a pending operation or allows duplicate execution. - Keep public keys on the async wrapper, preventing duplicate
GlobalKeyerrors. Rebuilding the same variant with the same key preserves its state and pending operation. - Block long presses while Elevated, Filled (including tonal), Outlined, and Text buttons are loading, including callbacks captured before a rebuild. Their loading state also disables keyboard activation and reports disabled semantics; idle long-press-only buttons remain usable.
- Preserve native Material disabled behavior for null
onPressedcallbacks in IconButton and floating action button variants. - Forward
onLongPress,onHover,onFocusChange, andfocusNodethrough the Elevated, Filled, Outlined, and Text.iconconstructors when an icon is supplied, matching the null-icon fallback and Filled.tonalIconbehavior. - Honor
isSelected,selectedIcon, selection styling, and Material 3 selection semantics in everyAsyncIconButtonvariant. Selected icons keep their loading transitions and fall back toiconwhen omitted.
Documentation and maintenance #
- Rewrite the README with a runnable quick start, constructor variants, loading and error handling guidance, selection examples, and transition sizing notes.
- Update analyzer and lint tooling, and add package, test, and example analysis to CI.
1.0.0 #
- Fixed
loadingChildrendering inAsyncElevatedButtonwhen usingTransitionAnimationType.stack - Ensured loading indicators display correctly across all button variants
- Prevented multiple taps while an async operation is running in
AsyncIconButton - Verified and adjusted loading indicator color and opacity for
AsyncIconButton - Added assertions for
customBuilderandsplashRadiusinAsyncIconButton - Refactored
AsyncOutlinedButtonandAsyncTextButtontests for consistency - Added comprehensive tests for
AsyncFloatingActionButton(various states and transitions) - Docs: Clarified
loadingChildbehavior withTransitionAnimationType.stackin README.
0.2.0 #
- Add support for AsyncIconButton
- Add support for AsyncFloatingActionButton
0.1.0 #
- Add support for AsyncFilledButton and AsyncFilledButton.icon
- Add support for AsyncOutlinedButton and AsyncOutlinedButton.icon
- Add support for AsyncTextButton and AsyncTextButton.icon
- Add support for AsyncIconButton
- Improve Code Quality
0.0.1 #
- Add initial version of the package with AsyncElevatedButton and AsyncElevatedButton.icon implementations