Skip to content

A Flutter package that allows you to use icons from the Iconify.design API with ease๐Ÿš€

License

Notifications You must be signed in to change notification settings

Shadyar-Bzhar-Othman/iconify_design_flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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

  • dio โ€“ For making HTTP requests to fetch icons.
  • flutter_svg โ€“ For rendering SVG icons.
  • shared_preferences โ€“ For local caching.
  • fpdart โ€“ For functional programming utilities.

๐Ÿ”— 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!

About

A Flutter package that allows you to use icons from the Iconify.design API with ease๐Ÿš€

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published