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

パッケージ詳細v1.1.0

flutter_icons

Flutter用のカスタマイズ可能なアイコン。Flutterプロジェクトで3,000個以上のアイコンを使用できます

30日間ダウンロード
2710
いいね数
734
Pub ポイント
35

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

flutter pub add flutter_icons

パッケージ概要

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

Flutter Icons は、Flutter アプリケーション向けに 3,000 を超えるカスタマイズ可能なアイコンを提供するパッケージです。簡単な pub コマンドで簡単に統合できる豊富なアイコンセットを提供し、UI デザインを強化します。動的なサイズ調整、色のカスタマイズ、既存の Flutter プロジェクトへのシームレスな統合をサポートしています。外部アセットに頼らず幅広いアイコンを活用したい開発者に最適です。ソースコードは GitHub で公開されており、透明性とコミュニティによる貢献を促進しています。

用途

  • アプリUIにカスタムアイコンを追加する
  • 視覚的ヒントによるナビゲーションの向上
  • ブランドアイコンセットの作成
  • 直感的な記号によるユーザーエクスペリエンスの向上
  • アイコンベースのメトリクスを使用したダッシュボードの構築

主な機能

  • 3,000以上のアイコン
  • カスタマイズ可能なサイズと色
  • pub を通じた簡単な統合
  • GitHub 上のオープンソース
  • 複数のアイコンライブラリをサポートしています

適している対象

  • モバイルアプリ開発者
  • UI/UXデザイナー
  • クロスプラットフォームプロジェクト
  • 豊富なアイコン表現を必要とするアプリ
  • デザインのスケジュールがタイトなプロジェクト

注意事項

  • 初期設定にはインターネット接続が必要です
  • アプリのバンドルサイズがわずかに増加する可能性があります
  • 事前に定義されたアイコンセットに限定
  • 組み込みアイコン検索なし
  • 外部リポジトリの安定性に依存しています

元の README

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

English | 简体中文

flutter_icons

pub package

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

Notice

  1. v1.0.0 has major Api changes, please be careful to upgrade
  2. icon names that begin with a number are preceded by a $prefix
  3. icon named with the dart keyword have the _ suffix added

Bundled Icon Sets

Browse all.

Usage

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

Widget

IconToggle
Prop Description
selectedIconData Icon is displayed when value is true
unselectedIconData Icon is displayed when value is false
activeColor When value is true, the icon color is displayed
inactiveColor When value is false, the icon color is displayed
value Whether this IconToggle is selected.
onChanged Called when the value of the IconToggle should change.
duration The duration of the transition from selected Icon to unselected Icon
reverseDuration he 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_icons/flutter_icons.dart';
import 'package:flutter/material.dart';

// 1.0.0 version used
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)

// After 1.1.0, the FlutterIcons class is provided to access all Icons
// Icon name in the original basis added icon set abbreviation name as suffix
// Hereinafter referred to as the following
//Ant Design Icons -> ant,
//Entypo Icons -> ent,
//Evil Icons -> evi,
//Feather Icons -> fea,
//Font Awesome Icons -> faw,
//Font Awesome 5 Regular -> faw5
//Font Awesome 5 Solid -> faw5s
//Font Awesome 5 Brands -> faw5b
//Foundation Icons -> fou,
//Ionicons Icons -> ion,
//Material Community Icons -> mco,
//Material Icons -> mdi,
//Octicons Icons -> oct,
//Simple Line Icons -> sli,
//Zocial Icons -> zoc,
//Weather Icons -> wea
Icon(FlutterIcons.stepforward_ant)
Icon(FlutterIcons.html5_faw)
...

// Previous versions of 1.0.0 are used
Icon(Ionicons.getIconData("ios-search"));
Icon(AntDesign.getIconData("stepforward"));
Icon(FontAwesome.getIconData("glass"));
Icon(MaterialIcons.getIconData("ac-unit"));
Icon(FontAwesome5.getIconData("address-book"));
Icon(FontAwesome5.getIconData("address-book",weight: IconWeight.Solid));
Icon(FontAwesome5.getIconData("500px", weight: IconWeight.Brand));
How to keep only the fonts used in the project.
step 1

Execute the command

pub global activate split_icon
step2

Add the font you want to leave in the project's pubspec file

//Ant Design Icons -> ant,
//Entypo Icons -> ent,
//Evil Icons -> evi,
//Feather Icons -> fea,
//Font Awesome Icons -> faw,
//Font Awesome 5 Regular -> faw5
//Font Awesome 5 Solid -> faw5s
//Font Awesome 5 Brands -> faw5b
//Foundation Icons -> fou,
//Ionicons Icons -> ion,
//Material Community Icons -> mco,
//Material Icons -> mdi,
//Octicons Icons -> oct,
//Simple Line Icons -> sli,
//Zocial Icons -> zoc,
//Weather Icons -> wea

...

flutter_icons:
  includes:
    -ant 
    -mco
 ...
step3

Execute the command in the project directory

split_icon

カテゴリー

ソースリポジトリ

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