A Flutter package for easily integrating custom SVG icons into your Flutter applications.
YELO ICONS is a package created for Flutter/dart. If you find it useful, please consider supporting it.
- Simple API for using custom SVG icons
- Customizable icon size and color
- Built on top of the
flutter_svg
package for efficient SVG rendering - New in v1.0.3: Added interaction handlers like
onTap
,onPress
,onLongPress
and more.
Add yelo_icons
to your pubspec.yaml
file:
dependencies:
yelo_icons: ^1.0.3
Run flutter pub get
to install the package.
Import the package in your Dart code:
import 'package:yelo_icons/yelo_icons.dart';
Use the Yelo.icon()
method to display an icon:
Yelo.icon("bold/user", size: 24, color: Colors.blue)
You can now add interaction events such as onTap
, onLongPress
, etc.
Yelo.icon(
"bold/user",
size: 48,
color: Colors.red,
onTap: () {
print("User icon tapped!");
},
onLongPress: () {
print("User icon long-pressed!");
},
)
import 'package:flutter/material.dart';
import 'package:yelo_icons/yelo_icons.dart';
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
children: [
Yelo.icon("bold/user", size: 48, color: Colors.red, onTap: () {
print('Icon tapped!');
}),
Yelo.icon("outline/settings", size: 24, color: Colors.green),
],
);
}
}
For more information on using this package, please refer to the API documentation.
To report issues or contribute to the package, visit our GitHub repository.
If you have suggestions or find issues with the package, feel free to open an issue or a pull request on the GitHub repository.
- Kudos to all contributors who made this package what it is.
This project is licensed under the MIT License - see the LICENSE file for details.