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

패키지 상세v4.0.0

flare_splash_screen

앱 초기화 작업이 완료될 때까지 Flare 애니메이션을 포함한 스플래시 화면을 표시하기 위한 보조 도구

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
666
좋아요
228
Pub 점수
140

패키지 설치

flutter pub add flare_splash_screen

패키지 개요

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

필수 앱 초기화 작업이 완료될 때까지 화면을 활성 상태로 유지하는 Flare 애니메이션 기반 스플래시 스크린을 가능하게 하는 플러터 패키지입니다. Flare의 애니메이션 벡터 그래픽과 원활하게 통합되어 시작 시 부드럽고 가벼운 애니메이션을 제공합니다. 개발자가 백그라운드 작업이 끝날 때까지 앱 준비를 미루면서도 매력적인 시각 효과로 온보딩 경험을 향상시키고자 할 때 적합합니다.

사용 사례

  • 애니메이션 스플래시를 사용한 앱 온보딩
  • 시각적 피드백이 있는 지연 초기화
  • 인터랙티브 애니메이션을 활용한 브랜딩
  • 크로스 플랫폼 스플래시 화면
  • 로딩 상태 시각화
  • 메인 앱으로의 부드러운 전환

주요 기능

  • 플레어 애니메이션 지원
  • 자동 초기화 지연 처리
  • 사용자 정의 기간 및 콜백
  • 크로스 플랫폼 호환성
  • 기존 Flutter 앱과의 간단한 통합
  • 사용자 정의 가능한 애니메이션 시작 및 종료 트리거

적합한 대상

  • Flare 애니메이션을 사용하는 개발자
  • 브랜드 스플래시 화면이 필요한 앱
  • 비동기 초기화를 가진 프로젝트
  • 사용자 경험을 우선시하는 팀
  • 다중 플랫폼을 대상으로 한 Flutter 앱
  • 디자인 중심의 모바일 및 웹 애플리케이션

고려 사항

  • Flare 파일 (.json) 필요
  • Flare 기반 애니메이션에 제한됨
  • 초기 번들 크기를 증가시킬 수 있습니다
  • 적절한 라이프사이클 관리가 필요합니다
  • 정적 스플래시 화면에 적합하지 않습니다
  • Flare 런타임 라이브러리에 종속됨

원본 README

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

flare_splash_screen

pub package

Facilitator for having a Splash screen with a Flare animation until some work has been done for the initialization of the app

If you're using Rive instead of Flare please use rive_splash_screen

Usage

Navigation

The splash screen will show the animation and push the new route you gave once it's finish, by default it does a fade animation but you can customize it by using transitionsBuilder

SplashScreen.navigate(
    name: 'intro.flr',
    next: (_) => MyHomePage(title: 'Flutter Demo Home Page'),
    until: () => Future.delayed(Duration(seconds: 5)),
    startAnimation: '1',
),
Callback

The splash screen will show the animation and call the onFinished callback when it's finish.

SplashScreen.callback(
    name: 'intro.flr',    
    onFinished: () {
      Navigator.of(context).pushReplacement(PageRouteBuilder(pageBuilder: (_,__,___) => MyHomePage(title: 'Flutter Demo Home Page')));
    },
    loopAnimation: '1',
    until: () => Future.delayed(Duration(seconds: 1)),
    endAnimation: '1',
),
API

name : path/name of the flare animation

next : screen to show once animation is finished as widget builder

loopAnimation: animation name to run, default same as first param

startAnimation: animation name to run once before going into loop

endAnimation: animation name to run once until is complete

until: callback that return a future to process your initialization

isLoading: alternative to until if you want to manage loading state with a boolean

height: force the height of the flare animation, by default it take the all place available

width: force the width of the flare animation, by default it take the all place available

alignment: alignment of the flare animation, center by default

transitionsBuilder transition to apply when showing next

Available animation mode
Only one animation

Basically you have one animation to show and then just need to stay at last frame. In order to do that only specify the startAnimation

Start and loop animation

Your animation have an intro and a loop state, in order to do that only specify the startAnimation and loopAnimation

End and loop animation

Your animation have a finish and a loop state, in order to do that only specify the endAnimation and loopAnimation

Start and end animation

Your animation have an intro and a finish that should stay on the last frame, in order to do that only startAnimation and endAnimation

Start, end and loop animation

Your animation have an intro, a finish and a loop state, in order to do that specify the startAnimation, endAnimation and loopAnimation

카테고리

의존성

의존성 목록 1 개

소스 저장소

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

아직 데이터가 없습니다.