heroicons
Flutter 앱에서 SVG 파일로 쉽게 Heroicons 세트를 사용하세요.
Flutter용 HeroIcons SVG 아이콘
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
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.
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(),
),
);
}
}
Run flutter pub add heroicons to quickly add latest version from your CLI.
의존성 목록 7 개
{"sdk":"flutter"}^2.0.17^1.9.0^4.10.1^3.0.1^5.0.0^4.1.0사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗