ant_icons 1.0.0 ant_icons: ^1.0.0 copied to clipboard
A Flutter package for the easy implementation of Ant Icons. It consists of Amazing Open Source icons with normal and outline version of each.
import 'package:ant_icons/ant_icons.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(title: 'AntIcons Example'),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
final String title;
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: Icon(
AntIcons.ant_cloud,
size: 100,
),
),
);
}
}