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

unicons 封面
套件詳情v3.0.0

unicons

1000+ 個美麗的圖標,可用於您的夢想專案,並享有 Flutter 提供的所有自訂功能

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
1.8萬
喜歡數
198
Pub 分數
150

安裝套件

flutter pub add unicons

套件介紹

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

Unicons 是一個 Flutter 套件,提供超過 1000 個設計精美的圖示,適用於 Android、iOS、Web、macOS、Windows 和 Linux。此套件利用 Flutter 的自訂功能,讓開發者能輕鬆將可縮放、可自訂的圖示整合至專案中。該套件支援多種圖示風格,並提供簡單的 API,確保圖示呈現的一致性。憑藉積極的維護與乾淨的程式碼結構,Unicons 提升了 UI 設計的彈性與視覺吸引力。

適用情境

  • App UI 增強
  • 儀表板介面
  • 行動與Web應用程式
  • 自訂圖示主題
  • 互動式使用者元素

主要特色

  • 1000+ 高品質圖示
  • 跨平台支援
  • 完整的 Flutter 自訂
  • 透過 pub 實現輕鬆整合
  • 輕量且高效

適合對象

  • UI/UX 設計師
  • Flutter 初學者
  • 全端 Flutter 開發人員
  • 需要豐富圖示資源的專案
  • 需要動態圖示的應用程式

使用建議

  • 初始設定需要互聯網
  • 圖示集可能需要針對特定使用案例進行過濾
  • 限於預定義圖示庫
  • 沒有內建的圖示搜尋功能
  • 不適合高度專業化的圖標需求

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Unicons

A Flutter library for Unicons.

Note: All icon data is auto-generated based on the latest release of Unicons.

style: effective dart GitHub repo size Project Owner GitHub stars GitHub forks

Installation

Add the dependency to your pubspec.yaml file.

dependencies:
  unicons: any

We recommend flutter pub upgrade to always stay updated with the latest release.

Usage

The library exposes all of the Unicons as IconData. If you want to use Line icons, use UniconsLine class, but if you want to use Solid icons, use UniconsSolid instead.

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

class MyWidget extends StatelessWidget {
  Widget build(BuildContext context) {
    return Container(
      height: MediaQuery.of(context).size.height,
      width: MediaQuery.of(context).size.width,
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        crossAxisAlignment: CrossAxisAlignment.center,
        children: [
          Icon(UniconsLine.camera),
          Icon(UniconsLine.baseball_ball),
          Icon(UniconsSolid.airplay),
          Icon(UniconsSolid.battery_empty),
        ],
      ),
    );
  }
}

License

Unicons are Open Source icons and licensed under Apache 2.0. You're free to use these icons in your personal and commercial project. We would love to see the attribution in your app's about screen, but it's not mandatory.

所屬分類

原始碼儲存庫

使用此套件的專案