パッケージ、リポジトリ、アプリカテゴリを検索

iconify_design のカバー
パッケージ詳細v1.0.2

iconify_design

Iconify.design API のアイコンを簡単に利用できる Flutter パッケージです。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
1260
いいね数
22
Pub ポイント
160

パッケージをインストール

flutter pub add iconify_design

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Iconify Design は、Flutter アプリケーションに iconify.design API からのアイコンを簡単に統合できる Flutter パッケージです。開発者は、複数のプラットフォームで数千ものスケーラブルなベクター イコンを簡単に検索、読み込み、表示できます。このパッケージは、動的なアイコン取得、テーマ対応レンダリング、効率的なキャッシュをサポートし、最適なパフォーマンスを実現します。最小限の設定でアプリサイズを増やさずに、UIデザインの柔軟性を高めます。

用途

  • クロスプラットフォームアプリにスケーラブルなアイコンを統合する
  • オンデマンドアイコンによるアセットバンドルサイズの削減
  • 広大なアイコンライブラリでUIを強化
  • ダーク/ライトモード用アイコンのバリエーションに対応
  • 応答性があり、アクセシビリティに配慮したインターフェースの構築

主な機能

  • Iconify.design API との直接統合
  • 動的アイコンの読み込みとキャッシュ
  • クロスプラットフォーム対応(Android、iOS、Web、macOS、Windows、Linux)
  • 軽量でモジュール構造のデザイン
  • テーマに基づくアイコンの自動切り替え
  • 検索可能なアイコンカタログ

適している対象

  • 大規模なアイコンライブラリを探している開発者
  • スケーラブルなベクトルグラフィックスを必要とするプロジェクト
  • 複数のプラットフォームをターゲットにするアプリ
  • 柔軟なアイコン管理を希望するUIデザイナー
  • パフォーマンスと保守性を重視するチーム

注意事項

  • 初期のアイコン取得にはインターネット接続が必要です
  • 多数のアイコンを初期に読み込むと、起動時間が遅れる可能性があります
  • 外部APIの利用可能性に依存します
  • ローカルアセットと比較してカスタマイズオプションが限られている
  • 遅いネットワーク経由でアイコンを取得する際の潜在的なレイテンシ

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Iconify Design

A Flutter package that allows you to use icons from the Iconify.design API with ease. This package provides a widget called IconifyIcon that takes an icon string and optionally allows you to specify the size, color, placeholder, and error widget of the icon.

iconify-design

Installation

Add the following to your pubspec.yaml file:

dependencies:
  iconify_design: ^1.0.2

Then run:

flutter pub get
Usage
import 'package:iconify_design/iconify_design.dart';
import 'package:flutter/material.dart';
Example

Here is an example of how to use the IconifyIcon widget:

import 'package:flutter/material.dart';
import 'package:iconify_design/iconify_design.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('Iconify Flutter Example'),
        ),
        body: Center(
          child: IconifyIcon(
            icon: 'mdi:home',
            size: 48.0,
            color: Colors.blue,
            placeholder: CircularProgressIndicator(),
            errorWidget: Icon(
              Icons.error_outline,
              color: Colors.red,
            ),
          ),
        ),
      ),
    );
  }
}
Parameters

The IconifyIcon widget has the following parameters:

  1. icon: The icon string (e.g., 'mdi:home', 'iconoir:fill-color-solid', etc.).
  2. size (optional): The size of the icon. Default is 24.0.
  3. color (optional): The color of the icon. Default is Black. Passing null also falls back to Black.
  4. placeholder (optional): The widget to display while the icon is loading. Default is a small circular progress indicator.
  5. errorWidget (optional): The widget to display when the icon cannot be loaded. Default is an empty widget.
Custom Placeholder and Error Widget

You can customize the loading and error states:

IconifyIcon(
  icon: 'mdi:home',
  placeholder: const SizedBox(
    width: 24,
    height: 24,
    child: CircularProgressIndicator(strokeWidth: 2),
  ),
  errorWidget: const Icon(
    Icons.error_outline,
    color: Colors.red,
  ),
)
Contribution

Feel free to open issues or submit pull requests to help improve this package.

License

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

Support

Don't forget to support (if you can).

"Buy Me A Coffee"

Maintainers

カテゴリー

依存関係

依存関係一覧 4 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。