async_button_builder
async_button_builder copied to clipboard
A helper builder to create loading buttons in Flutter
If you want to be able to do a SlidableAction you can't because it takes in raw strings and IconData: ```dart SlidableAction( label: StringsResource.systemRemove, // String backgroundColor: colors.eventLevel4, icon: icons.delete,...
This adds the thrown `error` and `stackTrace` parameters to the `onError` callback. It's quite useful to have these passed in, so the caller can e.g. show a `SnackBar` with some...
Steps 1. add pub api key to github repo secrets 2. query for it in CI (only on merge not pr) should also run a dry-run on PR so I...
Hi I have error after upgrade flutter to 2.2.3 `/C:/flutter/.pub-cache/hosted/pub.dartlang.org/async_button_builder-2.1.3+9/lib/src/async_button_builder.dart:271:25: Error: Required named parameter 'vsync' must be provided. ? AnimatedSize( ^ /C:/flutter/packages/flutter/lib/src/widgets/animated_size.dart:56:9: Context: Found this candidate, but the arguments don't...
I could add more parameters, but then the function signature would change on the builder which is breaking. I could also make a class to hold all the various types...
I've already got things sorted just need to know how to update the coverage to codecov and then use the badge in the readme
A new child is not replaced until after the first frame of the next animation.
```dart onChanged: (value) async {}, ``` We'd need to support a value coming through on the callback... Which would likely require a new widget... ? `AsyncDropdownButtonBuilder` ?
`duration` and `reverseDuration` should be replace with `loadingTransitionDuration`, `successTransitionDuration`, etc
I think I can add semantics around the various children of the button builder. Could be as simple as ```dart loadingWidget = Semantics( child: loadingWidget, label: 'This button is loading',...