responsive_loader_button

Creator: coderz1093

Last updated:

0 purchases

responsive_loader_button Image
responsive_loader_button Images
Add to Cart

Description:

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

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.

Related Products

More From This Creator