flutter_ionicons 8.0.13
flutter_ionicons: ^8.0.13 copied to clipboard
Ionicons v8 icon set for Flutter. 1357 icons covering filled, outline, and sharp variants.
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:
- Download the JSON and TTF from ionicons-ttf releases
- Replace
assets/fonts/Ionicons.ttfandassets/ionicons.json - Run
dart run bin/generate.dart - Update the version in
pubspec.yamlto match