lucide_icons_flutter 3.1.4
lucide_icons_flutter: ^3.1.4 copied to clipboard
A Lucide icon library package for Flutter applications. Fork of Feather Icons, open for anyone to contribute icons.
lucide_icons #
version: 0.545.0
Lucide Icons (lucide.dev) for Flutter. Visit the website for the full list of icons.
Example #
Use regular version
import 'package:lucide_icons_flutter/lucide_icons.dart';
Icon(LucideIcons.activity);
If you need to change the thickness of each icon stroke, use the way under the wire
import 'package:lucide_icons_flutter/lucide_icons.dart';
Icon(LucideIcons.activity100);
Icon(LucideIcons.activity200);
Icon(LucideIcons.activity300);
Icon(LucideIcons.activity400);
Icon(LucideIcons.activity500);
Icon(LucideIcons.activity600);
For RTL (right-to-left) support, use the dir()
extension to make icons automatically flip in RTL layouts:
extension IconDataX on IconData {
/// Tạo Icon có matchTextDirection = true (tự động flip khi RTL)
IconData dir({
bool matchTextDirection = true,
}) {
return IconData(
codePoint,
fontFamily: fontFamily,
fontPackage: fontPackage,
matchTextDirection: matchTextDirection,
);
}
}
import 'package:lucide_icons_flutter/lucide_icons.dart';
// Icon will automatically flip in RTL layouts
Icon(LucideIcons.arrowLeft.dir());
// You can also disable the RTL behavior if needed
Icon(LucideIcons.arrowLeft.dir(matchTextDirection: false));