activity_button 1.0.2
activity_button: ^1.0.2 copied to clipboard
A package for creating activity buttons with image and text.
Activity Button #
A customizable widget for creating activity buttons with an image and text.
Features #
- Displays an image and text.
- Supports onTap callback.
- Customizable with width and height ratios.
Getting started #
To use this package, add activity_button
as a dependency in your pubspec.yaml
file.
You can then import the package in your Dart code and use the ActivityButton
widget.
Usage #
Here's an example of how to use the
ActivityButton
widget:
ActivityButton(
title: 'Sample Activity',
imagePath: 'assets/images/sample_activity.png',
onTap: () {
// Handle button tap event
},
)