svg_to_font_convertor 0.0.2 copy "svg_to_font_convertor: ^0.0.2" to clipboard
svg_to_font_convertor: ^0.0.2 copied to clipboard

Converts SVG icons to OTF font and generates Flutter-compatible class. Provides an API and a CLI tool.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'ui/icons.dart';

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

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

class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) => Scaffold(
        appBar: AppBar(
          title: Text('Icons view test'),
        ),
        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(),
          ),
        ),
      );
}
1
likes
135
points
16
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Converts SVG icons to OTF font and generates Flutter-compatible class. Provides an API and a CLI tool.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

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

More

Packages that depend on svg_to_font_convertor