flutter_ionicons

Ionicons v8 for Flutter. 1357 icons with filled, outline, and sharp variants.

Installation

dependencies:
  flutter_ionicons: ^8.0.13

Usage

import 'package:flutter_ionicons/flutter_ionicons.dart';

// Basic
Icon(Ionicons.heart)

// With size and color
Icon(Ionicons.heart, size: 32, color: Colors.red)

// Variants — every icon comes in three styles
Icon(Ionicons.heart)          // filled
Icon(Ionicons.heart_outline)  // outline
Icon(Ionicons.heart_sharp)    // sharp

How it works

Icons are rendered via a TTF font built from the Ionicons SVG set and exposed as standard Flutter IconData constants.

Updating

When a new Ionicons version is released:

  1. Download the JSON and TTF from ionicons-ttf releases
  2. Replace assets/fonts/Ionicons.ttf and assets/ionicons.json
  3. Run dart run bin/generate.dart
  4. Update the version in pubspec.yaml to match

Libraries

flutter_ionicons