dartpub.dev DartNative · beta
plugins / lucide_kit
lu

lucide_kit

v0.1.0 MIT

Lucide icons for DartNative: 1,666 icons as IconData constants, font bundled, same names as lucide_icons_flutter.

lucide_kit brings Lucide (lucide.dev) to DartNative apps on iOS and Android. - 1,666 regular-weight icons from Lucide 0.562.0 as IconData constants: Icon(LucideIcons.house, size: 24, color: ...). - The icon font is bundled, and DartNative's icon tree shaking keeps only the icons your app uses. - Same names as the lucide_icons_flutter Flutter package, so ported code only changes its import. - Each constant's doc comment shows the icon's Lucide name and an SVG preview on hover in your IDE. Dart-only: no native code, no permissions, no third-party SDKs. Regular weight only; icons don't mirror automatically under RTL (DartNative's IconData has no matchTextDirection). Licenses: plugin code MIT. Bundled Lucide font and icon designs ISC (Lucide Contributors). Names generated from lucide_icons_flutter (MIT, vqh2602). Full notices ship in NOTICES.

by AbdurahmanAlmehdi/lucide_kit · DartNative ≥ 3.0 · updated 4 days ago
Install
Free
pubspec.yaml
dependencies:
  lucide_kit:
    hosted: https://dartpub.dev
    version: ^0.1.0
Weekly installs
0
Active apps
0
Rating
0.0 · 0
Open issues
0

lucide_kit

Lucide icons for DartNative apps. It has the 1,666 regular-weight icons of Lucide 0.562.0 as IconData constants, and bundles the font.

gallery

  • Same names as the Flutter package. Code written against lucide_icons_flutter ports by changing one import: LucideIcons.house stays LucideIcons.house.
  • Previews in your editor. Each constant's doc comment carries the icon's Lucide name and an SVG preview, which IDEs show on hover.
  • Only what you use ships. The DartNative build tree-shakes the icon font down to the icons your app references.

Install

dependencies:
  lucide_kit:
    hosted: https://dartpub.dev
    version: ^0.1.0
dn pub get

Use

import 'package:dartnative/dartnative.dart';
import 'package:lucide_kit/lucide_kit.dart';

Icon(LucideIcons.house, size: 24, color: const Color(0xFF111111));

Anywhere DartNative takes an IconData works, for example BottomNavigationBarItem(icon: Icon(LucideIcons.users), label: 'Team').

Browse the names at lucide.dev/icons and convert kebab-case to camelCase (circle-checkcircleCheck). A name starting with a digit is prefixed as in lucide_icons_flutter.

lucideIconCount and lucideVersion tell you what the package contains.

Porting from Flutter

Flutter DartNative
import 'package:lucide_icons_flutter/lucide_icons.dart'; import 'package:lucide_kit/lucide_kit.dart';
LucideIcons.house LucideIcons.house
LucideIcons.house100house900 (weights) not included: regular weight only

Icons from the older lucide_icons package (0.257) mostly keep their names. Lucide renamed a few since then; the Lucide changelog lists them.

Not included

  • Weight variants. Only the regular weight is shipped, to keep apps small.
  • Right-to-left mirroring. DartNative's IconData has no matchTextDirection, so directional icons such as arrows and chevrons don't flip under RTL. Pick the mirrored icon yourself, e.g. isRtl ? LucideIcons.chevronLeft : LucideIcons.chevronRight.

Updating to a newer Lucide

lib/lucide_kit.dart and lib/assets/lucide.ttf are generated from a lucide_icons_flutter release:

dn pub run tool/generate.dart ~/.pub-cache/hosted/pub.dev/lucide_icons_flutter-<version>
dn test

Example

example/lib/main.dart draws a grid of icons.

cd example && dn run

Credits and licenses

  • Lucide, the icons and the font: ISC License, © Lucide Contributors, with portions © Cole Bemis (Feather, MIT).
  • lucide_icons_flutter by vqh2602, the source of the names and code points: MIT.
  • This package's own code: MIT, see LICENSE.

The full notices are in THIRD_PARTY_NOTICES. They ship with the package, and DartNative adds them to your app's licence notices.