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

패키지 상세v3.0.0

flutter_font_icons

Flutter용 벡터 폰트 아이콘으로, react-native-vector-icons 및 WeatherIcons의 모든 폰트를 포함합니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
4.5천
좋아요
78
Pub 점수
150

패키지 설치

flutter pub add flutter_font_icons

패키지 개요

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

react-native-vector-icons 및 WeatherIcons의 모든 폰트를 포함한 벡터 폰트 아이콘을 제공하는 플러터 패키지입니다. 개발자가 여러 플랫폼에서 확장 가능하고 고품질의 아이콘을 쉽게 앱에 통합할 수 있도록 합니다. 안드로이드, iOS, 웹, 맥OS, 윈도우, 리눅스를 지원하여 기기나 운영체제에 관계없이 일관된 아이콘 렌더링을 보장합니다. pub add 명령을 통해 최소한의 설정으로 플러터 프로젝트 내 아이콘 관리를 간편하게 만듭니다.

사용 사례

  • 모바일 및 웹 앱에 확장 가능한 아이콘 통합하기
  • WeatherIcons를 사용하여 날씨 관련 아이콘 추가
  • 다양한 플랫폼 간 일관된 아이콘 그래피를 통한 UI 개선
  • 이미지 기반 아이콘을 가벼운 벡터 대안으로 교체
  • Flutter에서 react-native-vector-icons의 익숙한 아이콘 세트 사용

주요 기능

  • 모든 react-native-vector-icons 폰트를 지원합니다
  • 날씨 아이콘 세트 포함
  • 크로스 플랫폼 호환성
  • 경량 벡터 기반 아이콘
  • pub add 명령을 통한 간편한 통합

적합한 대상

  • 다양한 아이콘 세트가 필요한 플러터 개발자
  • 플랫폼 간 호환성 아이콘을 필요로 하는 프로젝트
  • 자주 UI 아이콘을 사용하는 앱
  • React Native에서 이전하는 개발자
  • 성능과 확장성을 우선시하는 팀

고려 사항

  • 일부 사용 사례에서는 수동으로 글꼴 자산을 구성해야 합니다
  • 사전 정의된 아이콘 세트로 제한됨
  • 동적 아이콘 생성 없음
  • 정적 아이콘 요구 사항에 가장 적합
  • 큰 아이콘 세트를 사용하면 앱 번들 크기가 약간 증가할 수 있습니다

원본 README

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

flutter_font_icons

English | 简体中文

pub package

Customizable Icons for Flutter, Inspired by react-native-vector-icons

Notice

  1. v3.0.0 has major underlying changes to maintain compatibility with Flutter's IconData and will not work on versions of Futter before 3.22.0.
  2. v2.0.0 has major Api changes, please be careful when upgrading
  3. icon names that begin with a number are preceded by a $prefix
  4. icons named with a dart language keyword have the _ suffix added

Bundled Icon Sets

Browse all.

Usage

To use this plugin, add flutter_font_icons as a dependency in your pubspec.yaml file.

Widget

IconToggle
Prop Description
selectedIcon This icon is displayed when IconToggle is selected
unselectedIcon This icon is displayed when IconToggle is not selected
selectedColor When IconToggle is selected, this icon color is displayed
unselectedColor When IconToggle is not selected, this icon color is displayed
selected Whether this IconToggle is selected.
size The size of the icon.
onChanged Called when the value of the IconToggle should change.
duration The duration of the transition from selected Icon to unselected Icon
reverseDuration The duration of the transition from unselected Icon to selected Icon
transitionBuilder Transition animation function between the selected Icon and the unselected Icon

Example

// Import package
import 'package:flutter/material.dart';
import 'package:flutter_font_icons/flutter_font_icons.dart';

// Include icons with
Icon(AntDesign.stepforward),
Icon(Ionicons.ios_search),
Icon(FontAwesome.glass),
Icon(MaterialIcons.ac_unit),
Icon(FontAwesome5.address_book),
Icon(FontAwesome5Solid.address_book),
Icon(FontAwesome5Brands.$500px),

카테고리

소스 저장소

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