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.
- Fetches SVG icons dynamically from Iconify.
- Caches icons locally for faster future loads.
- Supports custom size and color.
Add the package to your pubspec.yaml:
dependencies:
iconify_design_flutter: ^1.0.2Run:
flutter pub getImport the package:
import 'package:iconify_design_flutter/iconify_design_flutter.dart';Use the IconifyIcon widget:
IconifyIcon(
icon: "mdi:home",
color: Colors.black,
size: 32,
)- 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.
dioโ For making HTTP requests to fetch icons.flutter_svgโ For rendering SVG icons.shared_preferencesโ For local caching.fpdartโ For functional programming utilities.
- ๐ฆ Source Code
- ๐ Website
We welcome contributions! You can:
- Report issues via GitHub Issues.
- Submit a pull request if you'd like to improve the package.
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!