sl_ant_icons 2.0.0
sl_ant_icons: ^2.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:sl_ant_icons/sl_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',
key: null,
),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({required Key? key, required 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,
),
),
);
}
}