Skip to content

Latest commit

 

History

History
92 lines (58 loc) · 2.11 KB

README.md

File metadata and controls

92 lines (58 loc) · 2.11 KB

Iconify Design Flutter 🚀

iconify_design_flutter is a Flutter package that allows you to use icons from Iconify. It caches icons locally after the first fetch, making subsequent loads instant.


📌 Features

  • Fetches SVG icons dynamically from Iconify.
  • Caches icons locally for faster future loads.
  • Supports custom size and color.

📦 Installation

Add the package to your pubspec.yaml:

dependencies:
  iconify_design_flutter: ^1.0.2

Run:

flutter pub get

🚀 Usage

Import the package:

import 'package:iconify_design_flutter/iconify_design_flutter.dart';

Use the IconifyIcon widget:

IconifyIcon(
  icon: "mdi:home",
  color: Colors.black,
  size: 32,
)

⚙️ How It Works

  • Extracts the prefix and icon name from the provided string (e.g., "mdi:home").
  • Checks if the icon is already cached locally.
  • If not cached, fetches the SVG from Iconify and stores it.
  • On subsequent renders, loads the cached icon instead of fetching it again.

🔗 Dependencies


🔗 Links


🤝 Contribution

We welcome contributions! You can:

  • Report issues via GitHub Issues.
  • Submit a pull request if you'd like to improve the package.

🐜 License

This project is licensed under the MIT License – see the LICENSE file for details.


If you appreciate my work, please don't forget to ⭐ star the repo to show your support!