패키지, 저장소 및 앱 카테고리 검색

icofont_flutter 표지
패키지 상세v1.5.0

icofont_flutter

IcoFont 아이콘 팩은 플러터 아이콘 팩으로 제공됩니다. 수천 개의 무료 아이콘과 스마트 기술을 통해 디자인을 향상시키고 사용이 더욱 원활하도록 도와드립니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
368
좋아요
34
Pub 점수
160

패키지 설치

flutter pub add icofont_flutter

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

IcoFont Flutter는 수천 개의 무료이고 고품질 아이콘을 Flutter 애플리케이션에 제공하는 패키지입니다. 원활한 통합을 위해 설계되었으며, 스마트 기술을 활용하여 다양한 플랫폼에서 부드러운 렌더링을 보장합니다. 이 패키지는 Android, iOS, Web, macOS, Windows, Linux를 모두 지원하여 매우 유연합니다. 간단한 API를 통해 아이콘에 쉽게 접근할 수 있어 UI 디자인 효율성이 향상됩니다. 추가적인 부담 없이 풍부한 아이콘 라이브러리를 원하는 개발자에게 이상적입니다.

사용 사례

  • 확장 가능한 아이콘으로 앱 UI 향상
  • 사용자 인터페이스에 시각적 신호 추가하기
  • 다양한 플랫폼 간에 일관된 아이콘 표현 만들기
  • 대시보드 및 탐색 메뉴 디자인
  • 반응형 웹 및 모바일 앱 개발

주요 기능

  • 수천 개의 무료 아이콘
  • 크로스 플랫폼 지원
  • Flutter와의 간편한 통합
  • 성능 최적화됨
  • 확장 가능한 벡터 아이콘

적합한 대상

  • Flutter 사용자 UI/UX 디자이너
  • 모바일 및 웹 앱 개발자
  • 광범위한 아이콘 라이브러리를 필요로 하는 프로젝트
  • 디자인 일관성에 집중하는 팀
  • 빠른 아이콘 구현을 원하는 개발자

고려 사항

  • 초기 설정에는 인터넷이 필요합니다(캐시되지 않은 경우)
  • 표준 스타일링을 넘어서는 사용자 정의 옵션이 제한적입니다
  • 아이콘 업데이트에 외부 소스에 의존합니다
  • 아이콘이 적은 미니멀리즘 프로젝트에는 적합하지 않음
  • 사용되지 않은 아이콘으로 인한 대규모 프로젝트의 잠재적 팽창

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

icofont_flutter

pub package CI license: MIT

The IcoFont icon pack as a Flutter icon pack — 2,105 icons exposed as IconData constants, usable anywhere Flutter takes an icon.

No dependencies beyond Flutter itself. The font ships with the package, so there is nothing to declare in your own pubspec.yaml beyond the package.

Installation

flutter pub add icofont_flutter

Or add it to the dependencies: section of your pubspec.yaml:

dependencies:
  icofont_flutter: ^1.5.0

Usage

Every icon is a static const IconData on IcoFontIcons, so it works with any widget that accepts an IconData:

import 'package:flutter/material.dart';
import 'package:icofont_flutter/icofont_flutter.dart';

class MyWidget extends StatelessWidget {
  const MyWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return IconButton(
      icon: const Icon(IcoFontIcons.brandIcofont),
      onPressed: () => debugPrint('Pressed'),
    );
  }
}

Size and color come from the usual Icon properties:

const Icon(IcoFontIcons.rocket, size: 48, color: Colors.indigo)
Finding an icon

Browse the pack at icofont.com/icons. An icon's name there maps to a constant by camel casing it:

IcoFont name Constant
angry-monster IcoFontIcons.angryMonster
brand-icofont IcoFontIcons.brandIcofont
ui-calculator IcoFontIcons.uiCalculator
500px IcoFontIcons.fiveHundredpx

Names that would start with a digit are spelled out, since Dart identifiers cannot. lib/icofont_flutter.dart lists every constant with its IcoFont name in a comment above it.

The 324 duotone icons are not currently available — they are drawn as pairs of stacked glyphs, which the single-IconData API here cannot express.

Requirements

Dart >=2.12.0 <4.0.0, Flutter >=1.17.0. Works on Dart 2 and Dart 3.

Example

See example/ for a small app that renders icons from the pack:

cd example
flutter run

Updating the icons

lib/icofont_flutter.dart is generated from lib/fonts/icofont.ttf — do not edit it by hand. After replacing the font, regenerate:

dart run tool/generate_icons.dart

The generator reads glyph names from the font's post table and code points from its cmap table. It refuses to guess a name it cannot derive, so if it reports a problem, add the icon to nameOverrides in the script rather than editing the output. CI runs dart run tool/generate_icons.dart --check to verify the committed file still matches the font.

Credits

Icons by the IcoFont team, who made this wonderful pack free for everyone. This package only wraps their work for Flutter.

License

MIT — see LICENSE.

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트