搜尋套件、儲存庫與 APP 分類

套件詳情v3.0.0

flutter_font_icons

適用於 Flutter 的向量字型圖示,包含來自 react-native-vector-icons 與 WeatherIcons 的所有字型。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
4520
喜歡數
78
Pub 分數
150

安裝套件

flutter pub add flutter_font_icons

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個 Flutter 套件,提供向量字型圖示,包含來自 react-native-vector-icons 和 WeatherIcons 的所有字型。它讓開發者能輕鬆地將大量可縮放、高品質的圖示整合到他們的跨平台應用中。此套件支援 Android、iOS、Web、macOS、Windows 和 Linux,確保在任何裝置或作業系統上都能保持一致的圖示呈現。透過 pub add 命令進行最少設定,即可簡化 Flutter 專案中的圖示管理。

適用情境

  • 在移動和網頁應用中整合可擴展圖示
  • 使用 WeatherIcons 添加天氣相關圖標
  • 透過跨平台的一致圖示設計提升使用者介面
  • 用輕量級向量替代品取代基於圖像的圖示
  • 在 Flutter 中使用來自 react-native-vector-icons 的熟悉圖示集

主要特色

  • 支援所有 react-native-vector-icons 字型
  • 包含天氣圖示集
  • 跨平台相容性
  • 輕量級向量圖示
  • 透過 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),

所屬分類

原始碼儲存庫

使用此套件的專案