FLUTTER ECOSYSTEM

pedrolemoz/unicons-flutter

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

unicons-flutter 项目封面
Stars
18
Forks
7
最近推送(UTC)
2026年5月18日
项目状态
未归档
Pedro Lemos GitHub avatar
GITHUB User

Pedro Lemos ↗

语言DartC++CMakeJavaScriptSwiftCHTMLShellKotlinObjective-C

此仓库发布的插件

使用的依赖

依赖清单 2 项

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

Unicons

https://github.com/user-attachments/assets/24d6fb58-356e-49f3-8a8e-68f82073d40e

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.