icon_font_generator 0.0.6 copy "icon_font_generator: ^0.0.6" to clipboard
icon_font_generator: ^0.0.6 copied to clipboard

outdated

Convert all *.svg icons from dir to icon-font (.ttf) and generates flutter compatible dart class.

example/lib/main.dart

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

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        leading: Icon(UiIcons.account),
      ),
      body: Padding(
        padding: EdgeInsets.all(16),
        child: Column(
          children: [
            UiIcons.account,
            UiIcons.arrowLeft,
            UiIcons.collection,
            UiIcons.arrowRight,
          ]
              .map((icondata) => Padding(
                    padding: EdgeInsets.all(16),
                    child: Icon(icondata),
                  ))
              .cast<Widget>()
              .toList(),
        ),
      ),
    );
  }
}
111
likes
0
pub points
86%
popularity

Publisher

verified publisherserge.software

Convert all *.svg icons from dir to icon-font (.ttf) and generates flutter compatible dart class.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

args, meta, path, register

More

Packages that depend on icon_font_generator