iconfont 2.0.0 iconfont: ^2.0.0 copied to clipboard
Dart library to generate Dart model class from IconFont files.
import 'package:example/icons/my_icons.dart';
import 'package:example/icons/test_icons.dart';
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: Scaffold(
appBar: AppBar(
title: Icon(TestIcons.Myicon_Zhire),
),
body: Align(
child: Icon(MyIcons.Myicon_Zhileng),
),
),
);
}
}