Keyline Icons
Typed Flutter APIs for the official Keyline Icons collection. This package ships 1,366 icon names across eight regular and sharp style variants: 10,928 generated designs in total.
Install
flutter pub add keyline_icons
or add the dependency to your Flutter app:
dependencies:
keyline_icons: ^1.0.0
Use font icons
import 'package:flutter/material.dart';
import 'package:keyline_icons/keyline_icons.dart';
const Icon(KeyLineIcon.home, size: 28);
const Icon(KeyLineIcon.homeFill, color: Colors.indigo);
const Icon(KeyLineIcon.homeSharp);
Font icons are const IconData values and work with Flutter's normal size, color, theme, semantics, and text-direction controls.
Use vector icons
Two-tone and duotone artwork that needs SVG opacity is exposed through KeyLineVectorIcon and KeyLineVector:
const KeyLineVector(
KeyLineVectorIcon.homeDuotone,
size: 28,
color: Colors.indigo,
);
Give interactive icons a tooltip. Give informative standalone icons a semantic label; decorative icons can omit one. Directional icons mirror in RTL text direction where the source artwork is directional.
Styles
For a design such as home, generated names include home, homeFill, homeSharp, and their vector two-tone and duotone counterparts. Use IDE completion on KeyLineIcon. and KeyLineVectorIcon. to discover the available representation.
Source and license
The package is generated from the canonical SVG artwork in the Keyline Icons repository. The package source and release workflow live in ariaramin/keyline_icons. MIT licensed; see LICENSE.
Libraries
- keyline_icons
- Typed font and vector APIs for the Keyline icon collection.