搜索插件、代码仓与 APP 分类

unicons 封面
插件详情v3.0.0

unicons

1000+ 个精美图标,可用于您的梦想项目,享受 Flutter 提供的所有自定义功能

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
1.6万
喜欢数
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.

所属分类

源码仓库

使用此插件的项目