flutty_heroicons 1.1.1
flutty_heroicons: ^1.1.1 copied to clipboard
A Flutter port of HeroIcons — beautiful hand-crafted SVG icons by Tailwind, packaged for use with IconData.
Flutty HeroIcons Port #
A Flutter port of HeroIcons.
Includes Solid and Outline variants, exposed as IconData pairs through the HeroIcons API.
🎨 Usage #
Import the package:
import 'package:flutty_heroicons/flutty_heroicons.dart';
import 'package:flutter/material.dart';
class Example extends StatelessWidget {
const Example({super.key});
@override
Widget build(BuildContext context) {
return const Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
HeroIcon(
HeroIcons.academicCap.solid,
size: 32,
color: Colors.blue,
),
SizedBox(width: 16),
HeroIcon(
HeroIcons.academicCap.outline,
size: 32,
color: Colors.red,
),
],
);
}
}
Switching dynamically #
HeroIcon(
HeroIcons.academicCap.resolve(HeroIconStyle.outline),
size: 28,
color: Colors.green,
);
📝 License #
This package bundles the HeroIcons project by Tailwind Labs.
HeroIcons are licensed under the MIT License.