My Cool Package
A Flutter package providing a customizable gradient button widget with animation and icon support.
my_cool_package offers a GradientButton widget that allows developers to create visually appealing buttons with gradient backgrounds, customizable text styles, border radius, padding, gradient direction, and optional icons. It includes a subtle scale animation on press for a modern user experience.
Features
- Customizable Gradient: Choose any list of colors for the gradient background.
- Flexible Styling: Adjust border radius, padding, and text style.
- Gradient Direction: Control the gradient’s start and end alignment (e.g., top-left to bottom-right).
- Icon Support: Optionally include an icon alongside the button text.
- Press Animation: Subtle scale animation when the button is pressed.
- Cross-Platform: Works on Android, iOS, and web.
Installation
Add my_cool_package to your pubspec.yaml:
dependencies:
my_cool_package: ^0.0.1