Flutter Integration of the Lucide Icon Set

Published on by Flutter News Hub

Flutter Integration of the Lucide Icon Set

Lucide, an open-source icon library, offers a vast collection of over 1450 clean and modern icons. With the flutter_lucide package, you can seamlessly integrate Lucide into your Flutter applications.

Installation

Add the following line to your pubspec.yaml file:

dependencies:
  flutter_lucide: ^1.1.2

Usage

To utilize Lucide icons in your Flutter code:

  1. Import the package:
import 'package:flutter_lucide/flutter_lucide.dart';
  1. Include the desired icon:
Icon(LucideIcons.route);

Example

This code renders the "Route" icon:

import 'package:flutter_lucide/flutter_lucide.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: Icon(LucideIcons.route),
        ),
      ),
    );
  }
}

Contributions and Support

Welcome contributions to this repository via pull requests. If you encounter issues, feel free to open an issue. Your feedback and enhancements are highly valued.

License

This package is licensed under the MIT License.

Maintainers

  • Ravi Kovind
  • Achintya Singh

Disclaimer

This package is not an official Lucide product. All assets belong to their respective owners. It is intended to assist the Flutter community in integrating Lucide into their projects.

Flutter News Hub