stargazing-dino / async_button_builder

A helper builder to create loading buttons in Flutter
https://pub.dev/packages/async_button_builder
MIT License
29 stars 9 forks source link

removed `freezed` dependency and added new callbacks #30

Closed mergehez closed 2 years ago

mergehez commented 2 years ago

As the generated codes are still available, it doesn't make sense to have "freezed_annotation" in the dependencies. If a new button state is needed which is not likely to happen, then it can be temporarily added and removed after generating the code.

Added two new optional parameters: "onSuccess" and "onError".