Features

This packages is a port of feather_icons_svg, but with the icons provided by lucide instead of feather. Different from the official lucide icons this package allows the customization of icon properties in runtime (stroke width etc.).

Usage

class MyExampleWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return LucideIcon(
      LucideIcons.calendar,
      color: Colors.red,
      size: 30,
      strokeWidth: 1.6,
    );
  }
}

Install

Add lucide_icons_svg package into your pubspec.yaml.

flutter pub add lucide_icons_svg

Development

To fetch SVG icons from original Lucide Icons repository, run tool/fetch-icons.sh.

Finally, to run source code generation to create lucide_icons_svg.dart file with named constructor for every icon, run tool/generator.dart.

Libraries

lucide_icons_svg