Skip to main content

loadable_buttons 1.0.1 copy "loadable_buttons: ^1.0.1" to clipboard
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 loading and pending onPressed operations 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 GlobalKey errors. 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 onPressed callbacks in IconButton and floating action button variants.
  • Forward onLongPress, onHover, onFocusChange, and focusNode through the Elevated, Filled, Outlined, and Text .icon constructors when an icon is supplied, matching the null-icon fallback and Filled .tonalIcon behavior.
  • Honor isSelected, selectedIcon, selection styling, and Material 3 selection semantics in every AsyncIconButton variant. Selected icons keep their loading transitions and fall back to icon when 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 loadingChild rendering in AsyncElevatedButton when using TransitionAnimationType.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 customBuilder and splashRadius in AsyncIconButton
  • Refactored AsyncOutlinedButton and AsyncTextButton tests for consistency
  • Added comprehensive tests for AsyncFloatingActionButton (various states and transitions)
  • Docs: Clarified loadingChild behavior with TransitionAnimationType.stack in 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
16
likes
0
points
425
downloads

Publisher

unverified uploader

Weekly Downloads

Provides enhanced buttons with built-in loading states, async functionality and customizable transitions.

Homepage
Repository (GitHub)
View/report issues

Topics

#button #loading #material #ui #widget

License

unknown (license)

Dependencies

flutter

More

Packages that depend on loadable_buttons