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

パッケージ詳細v3.0.0

flutter_font_icons

Flutter用のベクターフォントアイコン。react-native-vector-iconsおよびWeatherIconsのすべてのフォントを含む。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
4520
いいね数
78
Pub ポイント
150

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

flutter pub add flutter_font_icons

パッケージ概要

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

react-native-vector-icons および WeatherIcons のすべてのフォントを含むベクターフォントアイコンを提供するFlutterパッケージです。開発者が複数のプラットフォームでスケーラブルで高品質なアイコンを簡単にアプリに統合できるようにします。Android、iOS、Web、macOS、Windows、Linuxをサポートしており、デバイスやオペレーティングシステムに関係なく一貫したアイコンレンダリングを保証します。pub add コマンドによる最小限のセットアップで、Flutterプロジェクトにおけるアイコン管理を簡素化します。

用途

  • モバイルおよびウェブアプリにスケーラブルなアイコンを統合する
  • WeatherIcons を使って天気関連のアイコンを追加する
  • 複数プラットフォーム間で一貫したアイコングラフィーによるUIの強化
  • 画像ベースのアイコンを軽量なベクターアルタナティブに置き換える
  • Flutter で react-native-vector-icons の既知のアイコンセットを使用する

主な機能

  • すべての react-native-vector-icons フォントをサポート
  • WeatherIcons セットを含む
  • クロスプラットフォーム互換性
  • 軽量なベクターベースのアイコン
  • pub add コマンドによる簡単な統合

適している対象

  • 多様なアイコンセットが必要なFlutter開発者
  • プラットフォームに依存しないアイコンを必要とするプロジェクト
  • 頻繁にUIアイコンを使用するアプリ
  • React Native から移行する開発者
  • パフォーマンスとスケーラビリティを優先するチーム

注意事項

  • 一部の使用ケースでは、手動でのフォントアセットの設定が必要です
  • 事前に定義されたアイコンセットに限定
  • 動的アイコンの生成なし
  • 静的アイコンのニーズに最適
  • 大きなアイコンセットを使用すると、アプリのバンドルサイズがわずかに増加する可能性があります

元の README

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

flutter_font_icons

English | 简体中文

pub package

Customizable Icons for Flutter, Inspired by react-native-vector-icons

Notice

  1. v3.0.0 has major underlying changes to maintain compatibility with Flutter's IconData and will not work on versions of Futter before 3.22.0.
  2. v2.0.0 has major Api changes, please be careful when upgrading
  3. icon names that begin with a number are preceded by a $prefix
  4. icons named with a dart language keyword have the _ suffix added

Bundled Icon Sets

Browse all.

Usage

To use this plugin, add flutter_font_icons as a dependency in your pubspec.yaml file.

Widget

IconToggle
Prop Description
selectedIcon This icon is displayed when IconToggle is selected
unselectedIcon This icon is displayed when IconToggle is not selected
selectedColor When IconToggle is selected, this icon color is displayed
unselectedColor When IconToggle is not selected, this icon color is displayed
selected Whether this IconToggle is selected.
size The size of the icon.
onChanged Called when the value of the IconToggle should change.
duration The duration of the transition from selected Icon to unselected Icon
reverseDuration The duration of the transition from unselected Icon to selected Icon
transitionBuilder Transition animation function between the selected Icon and the unselected Icon

Example

// Import package
import 'package:flutter/material.dart';
import 'package:flutter_font_icons/flutter_font_icons.dart';

// Include icons with
Icon(AntDesign.stepforward),
Icon(Ionicons.ios_search),
Icon(FontAwesome.glass),
Icon(MaterialIcons.ac_unit),
Icon(FontAwesome5.address_book),
Icon(FontAwesome5Solid.address_book),
Icon(FontAwesome5Brands.$500px),

カテゴリー

ソースリポジトリ

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