flutter_vector_icons 0.1.0
flutter_vector_icons: ^0.1.0 copied to clipboard
Customizable icons for Flutter. Fonts are the same as react-native-vector-icons
flutter_vector_icons #
Flutter version of react-native-vector-icons
Bundled Icon Sets #
AntDesignby AntFinance (297 icons)Entypoby Daniel Bruce (411 icons)EvilIconsby Alexander Madyankin & Roman Shamin (v1.10.1, 70 icons)Featherby Cole Bemis & Contributors (v4.7.0, 266 icons)FontAwesomeby Dave Gandy (v4.7.0, 675 icons)Foundationby ZURB, Inc. (v3.0, 283 icons)Ioniconsby Ben Sperry (v4.2.4, 696 icons)
MaterialCommunityIconsby MaterialDesignIcons.com (v3.4.93, 3494 icons)Octiconsby Github, Inc. (v8.4.1, 184 icons)
Zocialby Sam Collins (v1.0, 100 icons)SimpleLineIconsby Sabbir & Contributors (v2.4.1, 189 icons)
Installation #
Add flutter_vector_icons as a dependency in your pubspec.yaml file
Usage #
import 'package:flutter/material.dart';
import 'package:flutter_vector_icons/flutter_vector_icons.dart';
class MyWidget extends StatelessWidget {
Widget build(BuildContext context) {
return IconButton(
// Variable name is the same as font name:
//
// AntDesign
// Entypo
// EvilIcons
// Feather
// FontAwesome
// Foundation
// Ionicons
// MaterialCommunityIcons
// Octicons
// SimpleLineIcons
// Zocial
icon: Icon(MaterialCommunityIcons.star),
onPressed: () {
print('Star it');
},
);
}
}
Development #
- Copy font files to
fontsdirectory - Copy glyphmaps json files to
glyphmapsdirectory - run
dart tool/generate.dart
Credits #
License #
MIT