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 #
AntDesign
by AntFinance (297 icons)Entypo
by Daniel Bruce (411 icons)EvilIcons
by Alexander Madyankin & Roman Shamin (v1.10.1, 70 icons)Feather
by Cole Bemis & Contributors (v4.7.0, 266 icons)FontAwesome
by Dave Gandy (v4.7.0, 675 icons)Foundation
by ZURB, Inc. (v3.0, 283 icons)Ionicons
by Ben Sperry (v4.2.4, 696 icons)
MaterialCommunityIcons
by MaterialDesignIcons.com (v3.4.93, 3494 icons)Octicons
by Github, Inc. (v8.4.1, 184 icons)
Zocial
by Sam Collins (v1.0, 100 icons)SimpleLineIcons
by 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
fonts
directory - Copy glyphmaps json files to
glyphmaps
directory - run
dart tool/generate.dart
Credits #
License #
MIT