A Flutter package that provides gradient icons, allowing you to apply gradient effects to your icons.
- Easily create icons with customizable gradients.
- Supports various gradient types, including linear, radial, and sweep gradients.
- Highly customizable with control over colors, directions, and more.
Add the following line to your pubspec.yaml
file:
dependencies:
gradient_icon: ^2.0.9
Then run flutter pub get
to fetch the package.
Import the package into your Dart file:
import 'package:gradient_icon/gradient_icon.dart';
Use the GradientIcon
widget in your Flutter app:
GradientIcon(
icon: Icons.star,
gradient: LinearGradient(
colors: [Colors.red, Colors.blue],
begin: Alignment.topLeft,
end: Alignment.bottomRight,
),
size: 30,
),
For detailed usage instructions and API documentation, please refer to the documentation.
You can find more usage examples in the example folder of this repository.
This project is licensed under the MIT License.
See the CHANGELOG for a history of changes in the package.
Contributions to the gradient_icon
package are welcome! Please read the contribution guidelines before submitting a pull request.
This package was inspired by the need for gradient icons in Flutter and aims to provide an easy-to-use solution for applying gradients to icons.
If you have any questions, feel free to reach out:
- Email: ashrafchauhan567@gmail.com
- Githube: @MohamedAshraf701