line_icons 0.1.2 line_icons: ^0.1.2 copied to clipboard
Another icon library, based on Awesome Line Icons (by www.icons8.com) and with the help of FlutterIcon.com
import 'package:flutter/material.dart';
import 'package:line_icons/line_icons.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(title: 'Line Icons Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
final String title;
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
Icon _icon = Icon(LineIcons.code);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: Text(
'Awesome Line icons is great!',
),
),
floatingActionButton: FloatingActionButton(
onPressed: () => {},
child: Icon(LineIcons.plus),
),
);
}
}