flutter_polyicon 0.0.1 copy "flutter_polyicon: ^0.0.1" to clipboard
flutter_polyicon: ^0.0.1 copied to clipboard

One-shot icon font generator for Flutter. Convert SVG files to production-ready icon fonts with a single command.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:example/icons/app_icons.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Polyicon Example',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Polyicon Example'),
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            const Text(
              'Generated Icons:',
              style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
            ),
            const SizedBox(height: 40),
            Row(
              mainAxisAlignment: MainAxisAlignment.center,
              children: [
                _IconDisplay(icon: AppIcons.home, label: 'Home'),
                const SizedBox(width: 40),
                _IconDisplay(icon: AppIcons.settings, label: 'Settings'),
              ],
            ),
          ],
        ),
      ),
    );
  }
}

class _IconDisplay extends StatelessWidget {
  final IconData icon;
  final String label;

  const _IconDisplay({required this.icon, required this.label});

  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        Icon(icon, size: 48, color: Theme.of(context).primaryColor),
        const SizedBox(height: 8),
        Text(label, style: const TextStyle(fontSize: 16)),
      ],
    );
  }
}
2
likes
140
points
46
downloads

Publisher

unverified uploader

Weekly Downloads

One-shot icon font generator for Flutter. Convert SVG files to production-ready icon fonts with a single command.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (license)

Dependencies

args, collection, dart_style, flutter, logger, meta, path, path_parsing, recase, vector_math, xml, yaml

More

Packages that depend on flutter_polyicon