Gradient Icon
A Flutter package that provides gradient icons, allowing you to apply gradient effects to your icons.
Features
- 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.
Installation
Add the following line to your pubspec.yaml
file:
dependencies:
gradient_icon: ^0.0.5
Then run flutter pub get
to fetch the package.
Usage
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 more advanced usage and customization options, refer to the package's API documentation.
Examples
You can find more usage examples in the example folder of this repository.
License
This project is licensed under the MIT License.
Contributing
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.
Acknowledgements
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.
Get in touch
If you have any questions, feel free to reach out:
- Email: ashrafchauhan567@gmail.com
- Githube: @MohamedAshraf701
Libraries
- gradient_icon
- A Flutter library for creating gradient icons.