FLUTTER ECOSYSTEM

vaetas/heroicons

适用于 Flutter 的 HeroIcons SVG 图标

heroicons 项目封面
Stars
17
Forks
11
最近推送(UTC)
2025年1月11日
项目状态
未归档
Vojtech Pavlovsky GitHub avatar
GITHUB User

Vojtech Pavlovsky ↗

I mostly work with Flutter (currently for Linux), do some web in React, and occasionally design APIs.

Czech Republic
语言DartSwiftKotlinObjective-C

技术话题

此仓库发布的插件

使用的依赖

依赖清单 7 项

原始 README

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

展开 / 收起项目 README

HeroIcons

heroicons port to Flutter. This package renders the icons as SVG images.

This package was last updated to use heroicons version 2.2.0 (on December 15th, 2024). If there's a newer version of HeroIcons available, please create an issue or pull request.

Usage

class MyExampleWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return HeroIcon(
      HeroIcons.calendar,
      style: HeroIconStyle.outline, // Outlined icons are used by default.
      color: Colors.red,
      size: 30,
    );
  }
}

You can also use HeroIconTheme to set the default style (e.g., outline or solid) for all icons in your app. (You'll still be able to override the style for individual icons.)

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      // ...
      home: HeroIconTheme(
        style: HeroIconStyle.solid,
        child: MyHomePage(),
      ),
    );
  }
}

Install

Run flutter pub add heroicons to quickly add latest version from your CLI.