unicons
1000+ 個美麗的圖標,可用於您的夢想專案,並享有 Flutter 提供的所有自訂功能
1000+ 個美麗的圖標,可用於您的夢想專案,並享有 Flutter 提供的所有自訂功能
以下為英文專案原文快照,最新內容請造訪 GitHub。
A Flutter library for Unicons.
Note: All icon data is auto-generated based on the latest release of Unicons.
Add the dependency to your pubspec.yaml file.
dependencies:
unicons: any
We recommend flutter pub upgrade to always stay updated with the latest release.
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),
],
),
);
}
}
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.
依賴清單 2 項
{"sdk":"flutter"}^4.0.0先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗