FLUTTER ECOSYSTEM

GangemiLorenzo/aura_box

여러 개의 라디얼 그라데이션과 블러 효과를 결합하는 플러터 위젯

aura_box 프로젝트 이미지
Stars
32
Forks
0
최근 푸시(UTC)
2026. 2. 9.
프로젝트 상태
활성
Lorenzo Gangemi GitHub avatar
GITHUB User

Lorenzo Gangemi ↗

Building products at Holafly ____________________________

HolaflyDublin, Ireland공식 웹사이트 ↗
언어DartHTMLSwiftMakefileKotlinObjective-C

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 4 개
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}
  • patrol_finders개발 의존성>=1.0.0 <3.0.0
  • very_good_analysis개발 의존성>=5.1.0 <11.0.0

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

Aura Box

style: very good analysis patrol_finders on pub.dev License: MIT

Flutter widget that combines multiple radial gradients and blur effect.

Aura box banner image

Installation

Add this line into the project pubspec.yaml file.

dependencies:
    aura_box: ^1.0.4

Then in your files you can import it:

import 'package:aura_box/aura_box.dart';

Usage

The package exposes two widgets.

  • AuraBox acts as a container which can receive a child, a decoration and a list of AuraSpot.
  • AuraSpot represent the point where the radiant gradients are generated.
AuraBox(
    spots: [
        // Places one blue spot in the center
        AuraSpot(
            color: Colors.blue,
            radius: 100.0,
            alignment: Alignment.center,
            blurRadius: 5.0,
            stops: const [0.0, 0.5],
        ),
        // Places one red spot in the bottom right
        AuraSpot(
            color: Colors.red,
            radius: 150.0,
            alignment: Alignment.bottomRight,
            blurRadius: 10.0,
            stops: const [0.0, 0.7],
        ),
    ],
    decoration: BoxDecoration(
        color: Colors.transparent,
        shape: BoxShape.rectangle,
        borderRadius: BorderRadius.circular(10.0),
    ),
    child: const SizedBox(
        height: 100,
        width: 100,
    ),
)

https://github.com/GangemiLorenzo/aura_box/assets/26723808/974cfc39-28be-4942-bbab-95d942a5917a

Alignment

The single spots are positioned inside a stack widget. This gives control over their position using the alignment property.

For further details you can refer to the Alignment class documentation.

Example

An example project is available within the project:

example