カテゴリー・パッケージ・リポジトリを検索

パッケージ詳細v7.0.7296

material_design_icons_flutter

Flutter用にコミュニティが設計したマテリアルデザインアイコン

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
6.2万
いいね数
693
Pub ポイント
50

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

flutter pub add material_design_icons_flutter

パッケージ概要

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

コミュニティが作成したMaterial Designアイコンを提供するFlutterパッケージです。GoogleのMaterial Designガイドラインに準拠した包括的なアイコンセットを提供し、プラットフォーム間で一貫性と視覚的魅力を確保します。パフォーマンス最適化されており、Android、iOS、Web、macOS、Windows、Linuxなど、主要なFlutterプラットフォームをすべてサポートしています。開発者はシンプルなウィジェット構文を使用して、UIにアイコンを簡単に統合・カスタマイズできます。

用途

  • モバイルおよびウェブアプリにMaterial Design準拠のアイコンを統合する
  • 一貫性があり拡張可能なベクターアイコンでUIを強化する
  • 統一されたアイコングラフィーでクロスプラットフォームアプリケーションを構築する
  • Flutter ウィジェット内のアイコンの色とサイズをカスタマイズする
  • ボタン、ナビゲーションバー、アプリツールバーでアイコンを使用する

主な機能

  • Material Design アイコンの豊富なライブラリ
  • すべての主要なFlutterプラットフォームをサポート
  • pub.dev を通じた簡単な統合
  • 高解像度のスケーラブルなベクター画像アイコン
  • 組み込みアイコンテーマとカスタマイズオプション

適している対象

  • Material Design をベースにしたアプリを開発する Flutter 開発者
  • 複数のプラットフォーム間で一貫したアイコンセットを必要とするチーム
  • 軽量でパフォーマンスに優れたアイコンソリューションを必要とするプロジェクト
  • UI/UXの一貫性に注力する開発者
  • 複数のオペレーティングシステムをターゲットにするアプリ

注意事項

  • 新しいアイコンの追加には手動での更新が必要です
  • コミュニティメンテナンスのアイコンセットに限定
  • カスタムアイコンテーマ用に追加の構成が必要になる場合があります
  • Googleによって公式メンテナンスされていない
  • 更新のために外部のGitHubリポジトリに依存しています

元の README

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

material_design_icons_flutter

The Material Design Icons Icon pack available as set of Flutter Icons.

Based on Material Design Icons 7.4.47. See a web demo build with this package.

👍 Like us on pub.dev!

Installation

In the dependencies: section of your pubspec.yaml, add the following line:

  material_design_icons_flutter: 7.0.7447

WARNING: MDI's version is based on their icons quantity, which does not strictly respect semver guide. They do try their best to keep icons in same name between minor releases but name changing may still appear. To not break your application, using a fix version in your pubspec.yaml is highly recommended.

Usage

import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';

class MyWidget extends StatelessWidget {
  Widget build(BuildContext context) {
    return new IconButton(
      // Use the MdiIcons class for the IconData
      icon: new Icon(MdiIcons.sword),
      onPressed: () { print('Using the sword'); }
     );
  }
}

Or, if you want to access the icon by a string name, you can use fromString method to create one.

import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';

class MyWidget extends StatelessWidget {
  Widget build(BuildContext context) {
    return new IconButton(
      // Use the string name to access icons.
      icon: new Icon(MdiIcons.fromString('sword')),
      onPressed: () { print('Using the sword'); }
     );
  }
}

Note: This is not recomended because to make fromString work we need a map for all icon names. Using this method will not get the benefits of tree-shaking.

On flutter 1.22 and above, using fromString method will also cause a compile error This application cannot tree shake icons fonts, which can be bypass by building with --no-tree-shake-icons.

Name Conversion

Some icons' names are reserved keywords in Dart (and most other languages), so they have been changed.

  • null -> nullIcon
  • switch -> switchIcon
  • sync -> syncIcon
  • factory -> factoryIcon

カテゴリー

ソースリポジトリ

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