antd_icons_flutter
Ant Design icons for Flutter β 850+ icons covering Outlined, Filled and TwoTone styles, ported from @ant-design/icons-svg.
π Icon Gallery β browse all 850+ icons with live search and TwoTone color picker.
Features
- TTF font mode β Outlined (447) + Filled (251) packed in a single TTF font, native Flutter rendering
- TwoTone SVG mode β 150 dual-color icons rendered via
flutter_svg, with runtime color customization - Unified
AntdIconwidget β one component for both TTF and SVG modes, API aligned with antd React - Ant Design fidelity β naming convention matches antd React (
checkOutlined,heartFilled,checkCircleTwoTone)
Getting started
dependencies:
antd_icons_flutter: ^1.0.0
import 'package:antd_icons_flutter/antd_icons_flutter.dart';
Usage
AntdIcon widget (recommended)
// Outlined / Filled (TTF font)
AntdIcon(AntIcons.checkOutlined)
AntdIcon(AntIcons.searchOutlined, size: 24, color: Colors.blue)
// TwoTone (SVG, default #333 + #E6E6E6)
AntdIcon(AntIconsTwotone.checkCircleTwoTone)
// TwoTone with custom primary color (secondary auto-generated)
AntdIcon(AntIconsTwotone.heartTwoTone, twoToneColor: Colors.red)
Flutter Icon widget (TTF only)
Icon(AntIcons.checkOutlined)
Icon(AntIcons.heartFilled, color: Colors.red)
Naming convention
| antd React | antd_icons_flutter |
|---|---|
<CheckOutlined /> |
AntIcons.checkOutlined |
<CheckCircleFilled /> |
AntIcons.checkCircleFilled |
<CheckCircleTwoTone /> |
AntIconsTwotone.checkCircleTwoTone |
Inside antd_flutter_plus
If you use antd_flutter_plus, icons are re-exported automatically:
import 'package:antd_flutter_plus/antd_flutter_plus.dart';
AntButton(icon: AntdIcon(AntIcons.searchOutlined), child: Text('Search'))
Regenerating assets
The tool/ directory contains a self-contained generator that downloads the latest @ant-design/icons-svg from npm and regenerates all assets:
cd tool && npm install && node generate.mjs
Options: --version <ver> Β· --clean Β· --registry <url>
Icon list
Full icon list available at ant.design/components/icon.
License
MIT
Libraries
- antd_icons_flutter
- antd_icons_flutter β Ant Design εΎζ εΊ