Last updated:
0 purchases
responsive loader button
Responsive Loader Button for Future Callbacks
Features #
Modifiable package to build dynamic button
Getting started #
Simply add the package in your pubspec.yaml file
Usage #
Refer to the example code to see the usage of the package
class MyHomePage extends StatelessWidget {
MyHomePage({super.key, required this.title});
final String title;
//or you can define RxBool in a seperate GetX controller to separate business logic
final RxBool isLoading = false.obs;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Center(
child: ResponsiveLoaderButton(
isLoading: isLoading,
onTap: () async {
isLoading.value = true;
await 3.delay();
isLoading.value = false;
},
))
],
));
}
}
copied to clipboard
Additional information #
To be written after initial release, this is just a test, I am learning lol
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.