Skip to main content

icon_monks 0.4.2 copy "icon_monks: ^0.4.2" to clipboard
icon_monks: ^0.4.2 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),
                      ),
                  ],
                ),
              ),
          ],
        ),
      ),
    );
  }
}
1
likes
160
points
112
downloads

Documentation

API reference

Publisher

verified publishermonks.company

Weekly Downloads

Icon Monks for Flutter. 70,000+ open source icons in thin, light, regular, bold and fill weights.

Homepage
Repository (GitHub)
View/report issues

Topics

#icons #icon-font #svg #ui #design

License

MIT (license)

Dependencies

flutter

More

Packages that depend on icon_monks