flutter_icomoon_icons 1.0.0 flutter_icomoon_icons: ^1.0.0 copied to clipboard
490 Free IcoMoon Icons for Flutter for directly using in both Android/iOS
import "package:flutter/material.dart";
import 'package:flutter_icomoon_icons/flutter_icomoon_icons.dart';
import './icons_list.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
Widget iconCard(String iconName, IconData iconData) {
return Card(
color: Colors.blueGrey,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Icon(
iconData,
size: 50.0,
color: Colors.white,
),
SizedBox(height: 30.0),
],
),
);
}
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: "Brand Icons Example",
home: Scaffold(
backgroundColor: Color(0xFFF9F9F9),
appBar: AppBar(
leading: IconButton(onPressed: (){}, icon: Icon(IcoMoonIcons.eye)),
title: Text('IcoMoonIcons Example', style: TextStyle(color: Colors.blueGrey)),
centerTitle: true,
elevation: 0.0,
backgroundColor: Colors.white,
),
body: GridView.builder(
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 2,
crossAxisSpacing: 8.0,
),
itemBuilder: (BuildContext context, int index) {
return iconCard(
iconsDataList[index].keys.first,
iconsDataList[index].values.first,
);
},
itemCount: iconsDataList.length,
),
),
);
}
}