flutter_vector_icons 0.1.0 copy "flutter_vector_icons: ^0.1.0" to clipboard
flutter_vector_icons: ^0.1.0 copied to clipboard

outdated

Customizable icons for Flutter. Fonts are the same as react-native-vector-icons

flutter_vector_icons #

pub

Flutter version of react-native-vector-icons

Bundled Icon Sets #

Browse all.

  • 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)

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 #

  1. Copy font files to fonts directory
  2. Copy glyphmaps json files to glyphmaps directory
  3. run dart tool/generate.dart

Credits #

License #

MIT

239
likes
0
pub points
98%
popularity

Publisher

unverified uploader

Customizable icons for Flutter. Fonts are the same as react-native-vector-icons

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_vector_icons