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

Libraries

flutter_vector_icons