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

decorated_icon 표지
패키지 상세v1.2.1

decorated_icon

가벼우면서도 효율적인 아이콘 위젯으로 그림자 효과 목록을 지원합니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
2.8천
좋아요
80
Pub 점수
150

패키지 설치

flutter pub add decorated_icon

패키지 개요

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

DecoratedIcon은 사용자 정의 가능한 그림자 효과를 가진 아이콘을 표시하도록 설계된 경량이고 효율적인 Flutter 위젯입니다. 표준 Icon 위젯을 확장하여 개발자가 여러 그림자를 적용할 수 있게 하여 시각적 깊이와 디자인 유연성을 향상시킵니다. 성능 오버헤드 없이 시각적으로 매력적인 UI 요소를 만들기에 적합하며, Android, iOS, Web, macOS, Windows, Linux 등 주요 플랫폼을 모두 지원합니다. pub add를 통해 간단히 통합 가능하며, 깔끔하고 최소한의 코드로 유지 관리됩니다. 미세하거나 극적인 그림자를 가진 스타일화된 아이콘을 필요로 하는 앱에 완벽합니다.

사용 사례

  • 그림자와 함께 스타일 아이콘 추가
  • 시각적으로 풍부한 UI 컴포넌트 만들기
  • 앱 인터페이스에서 아이콘 외관 향상
  • 사용자 정의 버튼 아이콘 디자인
  • 대시보드의 시각적 계층 개선

주요 기능

  • 여러 그림자 효과를 지원합니다
  • 경량이고 성능이 뛰어남
  • pub add를 통한 간편한 통합
  • 크로스 플랫폼 호환성
  • 기본 Icon 위젯 확장
  • 사용자 정의 가능한 그림자 속성

적합한 대상

  • 시각적 매력이 필요한 UI 디자이너
  • 현대적인 앱 인터페이스를 개발하는 개발자
  • 세밀한 아이콘 개선이 필요한 프로젝트
  • 높은 시각적 디자인 기준을 갖춘 앱
  • 성능과 간결성을 우선시하는 팀

고려 사항

  • 그림자 효과만 가능
  • 내장 애니메이션 지원 없음
  • 수동 그림자 구성이 필요합니다
  • 복잡한 아이콘 변환에 적합하지 않음
  • 간단한 아이콘 테마와 함께 사용하는 것이 가장 좋습니다

원본 README

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

pub package

Decorated Icon

The best-performing shadowed icon widget for Flutter!

DecoratedIcon is a super lightweight Icon that supports shadow decorations.

No complicated hacks or multiple widgets, just List<Shadow> shadows like a TextStyle!

This widget is able to achieve the most efficient implementation of an icon with a shadow because it is uses a single Text widget to display the icon and apply the shadows.

It even supports debugging and Semantics.

One thing to keep in mind when using multiple shadows is the order of stacking by Flutter: the first shadow in the list will be painted at the bottom. (Similar to how the Stack widget draws its children.)

Also note that due to Flutter's current limitation, achieving an "outer glow" effect is not currently possible. You can read more here.

Usage

To use this package, add decorated_icon as a dependency in your pubspec.yaml file.

Example

snapshot

Import the library.

import 'package:decorated_icon/decorated_icon.dart';

Then use DecoratedIcon as you would an Icon:

final decoratedIcons = Row(
  mainAxisAlignment: MainAxisAlignment.spaceEvenly,
  children: const [
    DecoratedIcon(
      Icons.android,
      color: Colors.purple,
      size: 60.0,
      shadows: [
        BoxShadow(
          blurRadius: 42.0,
          color: Colors.purpleAccent,
        ),
        BoxShadow(
          blurRadius: 12.0,
          color: Colors.white,
        ),
      ],
    ),
    DecoratedIcon(
      Icons.favorite,
      color: Colors.lightBlue.shade50,
      size: 60.0,
      shadows: [
        BoxShadow(
          blurRadius: 12.0,
          color: Colors.blue,
        ),
        BoxShadow(
          blurRadius: 12.0,
          color: Colors.green,
          offset: Offset(0, 6.0),
        ),
      ],
    ),
    DecoratedIcon(
      Icons.fingerprint,
      color: Colors.orange,
      size: 60.0,
      shadows: [
        BoxShadow(
          color: Colors.black,
          offset: Offset(3.0, 3.0),
        ),
      ],
    ),
  ],
);

카테고리

소스 저장소

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