icon_monks 0.4.1
icon_monks: ^0.4.1 copied to clipboard
Icon Monks for Flutter. 70,000+ open source icons in thin, light, regular, bold and fill weights.
example/lib/main.dart
// GENERATED by scripts/packages.py. Do not edit.
import 'package:flutter/material.dart';
import 'package:icon_monks/icon_monks.dart';
void main() => runApp(const IconMonksExample());
/// Shows a few icons in every weight.
class IconMonksExample extends StatelessWidget {
const IconMonksExample({super.key});
@override
Widget build(BuildContext context) {
final weights = <String, List<IconData>>{
'thin': [
IconMonks.thin.house,
IconMonks.thin.heart,
IconMonks.thin.star,
IconMonks.thin.gear,
IconMonks.thin.bell,
],
'light': [
IconMonks.light.house,
IconMonks.light.heart,
IconMonks.light.star,
IconMonks.light.gear,
IconMonks.light.bell,
],
'regular': [
IconMonks.house,
IconMonks.heart,
IconMonks.star,
IconMonks.gear,
IconMonks.bell,
],
'bold': [
IconMonks.bold.house,
IconMonks.bold.heart,
IconMonks.bold.star,
IconMonks.bold.gear,
IconMonks.bold.bell,
],
'fill': [
IconMonks.fill.house,
IconMonks.fill.heart,
IconMonks.fill.star,
IconMonks.fill.gear,
IconMonks.fill.bell,
],
};
return MaterialApp(
title: 'Icon Monks',
home: Scaffold(
appBar: AppBar(title: const Text('Icon Monks')),
body: ListView(
padding: const EdgeInsets.all(16),
children: [
for (final entry in weights.entries)
ListTile(
title: Text(entry.key),
subtitle: Row(
children: [
for (final icon in entry.value)
Padding(
padding: const EdgeInsets.all(8),
child: Icon(icon, size: 32),
),
],
),
),
],
),
),
);
}
}