async_button_handler 0.1.0+1 copy "async_button_handler: ^0.1.0+1" to clipboard
async_button_handler: ^0.1.0+1 copied to clipboard

A Flutter package that provides a customizable button widget to handle asynchronous actions with built-in loading and error state handling.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[0.1.0] - 2024-12-11 #

Added #

  • Overlay Loading Mode: Improved behavior for modal loading indicators during async operations.
  • Example App: Added a comprehensive example app in the README to demonstrate various use cases.

Changed #

  • onError Removed: The onError property has been removed, allowing users to handle exceptions directly outside the package for better flexibility and tracking.

Fixed #

  • Improved internal logic for handling mounted state during async operations.
  • Enhanced documentation for better clarity and usability.

[0.0.1] - 2024-10-16 #

Added #

  • Initial release of Async Button Handler package.
  • AsyncButtonHandler widget for handling async actions with built-in loading state handling.
  • onPressed property to handle async or sync actions.
  • loadingChild property to display a custom loading indicator.
  • buttonChild property for the button's main content.
  • style property to customize button appearance.
  • onError property to handle error states without requiring additional state management.

Fixed #

  • N/A

Changed #

  • N/A
7
likes
150
points
30
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that provides a customizable button widget to handle asynchronous actions with built-in loading and error state handling.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on async_button_handler