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

glowy_borders 표지
패키지 상세v1.0.2

glowy_borders

경계를 빛나게 만드는 패키지

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
7.3천
좋아요
84
Pub 점수
130

패키지 설치

flutter pub add glowy_borders

패키지 개요

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

Glowy Borders는 위젯 테두리에 생생하고 애니메이션 효과가 있는 빛나는 효과를 추가하여 UI 디자인을 향상시키는 Flutter 패키지입니다. 개발자가 최소한의 코드로 어떤 위젯에도 부드럽고 사용자 정의 가능한 빛나는 효과를 쉽게 적용할 수 있습니다. 현대적인 앱 인터페이스에 적합하며 Android, iOS, Web, macOS, Windows, Linux 등 여러 플랫폼을 지원합니다. 패키지는 Flutter의 렌더링 기능을 활용해 부드러운 애니메이션과 시각적 깊이를 제공합니다. 버튼, 카드 또는 상호작용 요소에 동적인 느낌을 주기 위해 완벽합니다.

사용 사례

  • 애니메이션 버튼 테두리 만들기
  • 글로 효과로 카드 UI 개선
  • 인터랙티브 UI 컴포넌트 설계
  • 사용자 상호작용에 시각적 피드백 추가
  • 현대적이고 세련된 앱 인터페이스 구축

주요 기능

  • 사용자 정의 가능한 빛 색상 및 강도
  • 부드러운 애니메이션 전환
  • 다중 플랫폼 지원
  • 기존 위젯과의 간편한 통합
  • 사용자 정의 가능한 빛 반경 및 흐림

적합한 대상

  • 시각적 매력이 필요한 UI 디자이너
  • 현대적인 Flutter 앱을 개발하는 개발자
  • 애니메이션된 테두리 효과가 필요한 프로젝트
  • 크로스 플랫폼 일관성을 목표로 하는 앱
  • 창의적 또는 게임 스타일의 인터페이스

고려 사항

  • 저사양 기기에서 성능에 영향을 미칠 수 있습니다
  • 최적의 시각적 균형을 위해 신중한 조정이 필요합니다
  • 빛나는 속성 외에 사용자 정의가 제한적
  • 미니멀리즘 디자인 스타일에 적합하지 않습니다
  • 시각적 혼잡을 피하기 위해 적절히 사용하는 것이 좋습니다

원본 README

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

This package provides a wrapper widget to animate borders around your widgets. You can choose to provide current Animation Progress externally or use an indefinitely animation.

| |

Features

AnimatedGradientBorder Widget
  • Wrapper to Animate widgets border with gradients and glow
  • Set animation progress manually or loop indefinitely
  • control size of glow, border and colors to achieve stunning effects

Getting started

Create your flutter app, import this package and use AnimatedGradientBorder to wrap some element.

Usage

In this example you only need to wrap the widget with a full size Column in your app to see the results. Also note the currentProgress variable which is used to set animation state. If you remove it or set it to null, the animation will play indefinitely.

Please Note that you will need to set the same border radius for the wrapper as well as the child to make it look like a true border.

Also note, that this widget will not work in stretched alignments if you don't provide the parameter stretchAlongAxis and specify which axis you want to stretch along


final widget = Scaffold(
  extendBody: true,
  body: SafeArea(
    child: Center(
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        crossAxisAlignment: CrossAxisAlignment.center,
        children: [
          const Column(
            children: [Text('Hallo Welt')],
          ),
          AnimatedGradientBorder(
            borderSize: 2,
            glowSize: 10,
            gradientColors: [
              Colors.transparent,
              Colors.transparent,
              Colors.transparent,
              Colors.purple.shade50
            ],
            animationProgress: currentProgress,
            borderRadius: BorderRadius.all(Radius.circular(999)),
            child: SizedBox(
              width: 300,
              height: 300,
              child: Container(
                decoration: BoxDecoration(
                    borderRadius: BorderRadius.all(Radius.circular(999)),
                    color: Theme
                        .of(context)
                        .colorScheme
                        .secondaryContainer),
                child: Column(
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: [
                    Text("current value: $currentProgress",
                        style: TextStyle(color: Colors.white, fontSize: 30.0)),
                  ],
                ),
              ),
            ),
          ),
        ],
      ),
    ),
  ),
);

Additional information

This feature uses Backdrop Filter under the hood which can cause performance issues if used extensively. Keep that in mind.

카테고리

소스 저장소

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

아직 데이터가 없습니다.