icons_plus

icons_plus_thumbnail

github-rahul donate

icons_plus 是一个包含了多个流行图标包的软件包。

如何知道图标的名称?

简单来说,可以使用 Flutter 的自动建议功能,或者访问图标提供商的官方网站。

当前可用图标

目前,icons_plus 包含五个图标包。下一个更新将提供更多。

  1. FontAwesome (许可证)
  2. LineAwesome (许可证)
  3. Bootstrap (许可证)
  4. FlagIcon
  5. BrandLogo

安装

在您的 pubspec.yaml 文件的 dependencies: 部分添加以下行

dependencies:
  icons_plus: ^1.0.2

现在,在您的 Dart 代码中,您可以使用

import 'package:icons_plus/icons_plus.dart';

FontAwesome

对于 FontAwesome 图标,复制以下代码。

fontawesome_screenshot

Icon(FontAwesome.google)

LineAwesome

对于 LineAwesome 图标,复制以下代码。

lineawsome_screenshot

Icon(LineAwesome.google)

Bootstrap

对于 Bootstrap 图标,复制以下代码。

bootstrap_screenshot

Icon(Bootstrap.google)

FlagIcon

对于 Flag 图标,复制以下代码。

flag_screenshort

FlagIcon(FlagIcons.india)

BrandLogo

对于 Brand 标志,复制以下代码。

brand_screenshot

BrandLogo(BrandLogos.google)

更改日志

- 26/03/2022
  - Initial Release

GitHub

查看 Github