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

flutter_moving_background 표지
패키지 상세v0.4.0

flutter_moving_background

그라데이션, 원형 형태 및 입자와 같은 아름답고 애니메이션 효과가 있는 배경을 만들 수 있는 Flutter 패키지

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
1.5천
좋아요
38
Pub 점수
155

패키지 설치

flutter pub add flutter_moving_background

패키지 개요

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

그라데이션, 원형 형태 및 입자 효과를 사용하여 시각적으로 매력적인 애니메이션 배경을 만들 수 있도록 설계된 플러터 패키지입니다. 다양한 플랫폼에서 효율적으로 작동하는 동적이고 부드러운 애니메이션을 통해 앱의 미적 완성도를 높이는 데 이상적입니다. 색상, 이동 속도, 입자 밀도를 사용자 정의할 수 있어 스플래시 화면, 로그인 페이지 또는 몰입형 UI에 적합합니다. 플러터 위젯 시스템과 원활하게 통합되며 성능 향상을 위해 하드웨어 가속 기능을 활용합니다. 복잡한 코드 없이 현대적이고 매력적인 시각적 요소를 추가하고 싶은 개발자에게 완벽한 선택입니다.

사용 사례

  • 스플래시 화면
  • 로그인 인터페이스
  • immersiv 대시보드
  • 애니메이션 온보딩
  • 디지털 예술 전시용 배경

주요 기능

  • 애니메이션 그라디언트
  • 입자 효과
  • 순환형 모양 애니메이션
  • 사용자 정의 가능한 속도 및 밀도
  • 크로스 플랫폼 지원
  • 하드웨어 가속 렌더링

적합한 대상

  • 시각적 매력이 필요한 UI 디자이너
  • 매력적인 온보딩 흐름을 구축하는 개발자
  • 동적 배경 시각 효과가 필요한 앱
  • 창의적인 디지털 경험
  • 프론트엔드 중심의 플러터 프로젝트

고려 사항

  • 저사양 기기에서 성능에 영향을 미칠 수 있습니다
  • 배터리 사용량을 고려한 세밀한 최적화가 필요합니다
  • 개별 입자 행동에 대한 제어가 제한됨
  • 정적 또는 천천히 움직이는 애니메이션에 가장 적합
  • 고주파 상호작용 배경에 적합하지 않음

원본 README

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

Flutter Moving Background

A high-performance Flutter package for creating beautiful, customizable moving backgrounds.

See an Example here : https://movingbg.netlify.app/

Sunset Preset

Aurora Preset

Cyberpunk Preset

Constellation

Flowing Waves

Bouncing Bubbles

Parallax Rain

Features

  • [X] High Performance: Optimized with a single Ticker, CustomPainter, and zero-allocation paint loops for smooth 60fps+ animations.
  • [X] Shader Caching: Highly optimized parallax trail rendering in rain animations to prevent frame drops.
  • [X] Beautiful Presets: Built-in design presets (sunset, aurora, cyberpunk, themed).
  • [X] Multiple Background Styles: Includes MovingBackground, BubbleBackground, RainBackground, ConstellationBackground, and WaveBackground.
  • [X] Pause/Resume: Easily pause animations when not needed to save battery.
  • [X] Customizable: Control colors, radius, blur, speed, and more.
  • [X] Lightweight: Minimal impact on your app's widget tree (zero dependencies outside Flutter).

Supported Platforms

  • Flutter Android
  • Flutter iOS
  • Flutter Web
  • Flutter Desktop

Getting started

In your flutter project add the dependency:

dependencies:
  flutter_moving_background: ^0.3.0

Import the package:

import 'package:flutter_moving_background/flutter_moving_background.dart';

How to use

1. Moving Circles Presets (One-Liners)

Create beautiful glowing backgrounds instantly using const preset constructors:

// Warm sunset oranges & deep purples
MovingBackground.sunset(child: YourWidget())

// Neon green & dark space blue auroras
MovingBackground.aurora(child: YourWidget())

// Electric magenta & neon cyan cyberpunk theme
MovingBackground.cyberpunk(child: YourWidget())

// Theme-aware color schemes (inherits primary/secondary/tertiary colors from active ThemeData)
MovingBackground.themed(context, child: YourWidget())
2. Custom Moving Circles
MovingBackground(
  backgroundColor: Colors.white,
  animationType: AnimationType.pulse,
  duration: Duration(seconds: 10),
  circles: const [
    MovingCircle(color: Colors.purple, radius: 300),
    MovingCircle(color: Colors.deepPurple, radius: 500),
    MovingCircle(color: Colors.orange, radius: 400),
  ],
  child: Center(child: Text("Hello World")),
)
3. Constellation Background (Interactive Particle Web)

A tech-oriented particle system where floating nodes slowly move. Nearby nodes are connected by dynamic, distance-based web lines. Includes mouse hover / touch attraction.

ConstellationBackground(
  particleCount: 50,
  maxDistance: 120.0,
  speed: 1.0,
  colors: const [Colors.cyanAccent, Colors.pinkAccent],
  lineColor: Colors.white12,
  child: YourWidget(),
)
4. Flowing Waves Background

Layered sine waves that flow horizontally with parallax speeds and customizable wave heights/amplitudes for soothing fluid landscape aesthetics.

WaveBackground(
  waveCount: 3,
  speed: 1.0,
  amplitude: 25.0,
  frequency: 0.005,
  colors: const [Colors.blue, Colors.teal, Colors.cyan],
  child: YourWidget(),
)
5. Bubble Background
BubbleBackground(
  numBubbles: 15,
  colors: [Colors.blue, Colors.purple],
  speed: 1.5,
  child: YourWidget(),
)
6. Rain Background
RainBackground(
  numberOfDrops: 100,
  fallSpeed: 2.0,
  hasTrail: true,
  colors: const [Colors.blue],
  child: YourWidget(),
)

Animation Types

Type Description
moveAndFade Circles move to random positions while fading in and out.
pulse Circles move while their size and opacity pulse rhythmically.
scale Circles scale from zero to full size and back as they move.
move Circles move at constant opacity and size.

Contributing

Feel free to contribute to this project.

If you find a bug or want a feature, but don't know how to fix/implement it, please fill an issue.
If you fixed a bug or implemented a feature, please send a pull request.

카테고리

소스 저장소

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

아직 데이터가 없습니다.