flutter_feather_icons 2.0.0+1 flutter_feather_icons: ^2.0.0+1 copied to clipboard
Feather is a collection of simply beautiful open source icons. Each icon is designed on a 24x24 grid with an emphasis on simplicity, consistency and usability.
import "package:flutter/material.dart";
import './icons_list.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
Widget iconCard(IconData iconData, String iconName) {
return Card(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Icon(
iconData,
size: 50.0,
),
SizedBox(height: 30.0),
Text(iconName)
],
),
);
}
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: "Feather Icons Example",
home: Scaffold(
backgroundColor: Color(0xFFF9F9F9),
appBar: AppBar(
title: Text('FeatherIcons Example'),
),
body: GridView.builder(
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 2,
crossAxisSpacing: 8.0,
),
itemBuilder: (BuildContext context, int index) {
return iconCard(
iconDataList[index],
iconNameList[index],
);
},
itemCount: iconDataList.length,
),
),
);
}
}