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

패키지 상세v0.1.1

rive_splash_screen

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

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
229
좋아요
59
Pub 점수
140

패키지 설치

flutter pub add rive_splash_screen

패키지 개요

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

앱 초기화 중에 Rive 애니메이션을 포함한 스플래시 화면을 표시할 수 있도록 해주는 플러터 패키지입니다. 시작 시 부드럽고 상호작용 가능한 애니메이션 통합을 간소화하여 사용자 경험을 풍부하게 합니다. 초기화 작업이 완료되면 로딩 로직과 전환을 원활하게 처리합니다. 모바일, 웹, 데스크톱 등 여러 플랫폼을 지원하므로, 시각적으로 매력적인 온보딩 경험을 필요로 하는 앱에 이상적입니다.

사용 사례

  • 애니메이션 스플래시를 사용한 앱 온보딩
  • 로딩 상태 시각화
  • 인터랙티브 애니메이션을 활용한 브랜딩
  • 지연 초기화 처리
  • 크로스 플랫폼 스플래시 화면

주요 기능

  • Rive 애니메이션 지원
  • 초기화 후 자동 전환
  • 다중 플랫폼 호환성
  • 최소 코드로 간단한 설정
  • 사용자 정의 가능한 로딩 기간

적합한 대상

  • 애니메이션 스플래시 화면을 찾는 개발자
  • 복잡한 초기화 프로세스를 가진 앱
  • 시각 디자인에 중점을 두는 프로젝트
  • 애니메이션에 Rive를 사용하는 팀
  • 크로스 플랫폼 애플리케이션

고려 사항

  • Rive 파일 자산이 필요합니다
  • 애니메이션이 클 경우 초기 로드 시간에 영향을 줄 수 있습니다
  • 적절한 초기화 로직이 필요합니다
  • 기본 전환을 넘어서는 사용자 정의가 제한되어 있음
  • Rive 런타임 성능에 따라 다름

원본 README

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

rive_splash_screen

pub package

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

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.riv',
    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.riv',
    onSuccess: (data) {
      //data is the optional data returned by until callback function
      Navigator.of(context).pushReplacement(PageRouteBuilder(pageBuilder: (_,__,___) => MyHomePage(title: 'Flutter Demo Home Page')));
    },
    onError: (err, stack) {
      //error throw by until callback function
    },
    loopAnimation: '1',
    until: () => Future.delayed(Duration(seconds: 1)),
    endAnimation: '1',
),
API

name : path/name of the Rive 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 Rive animation, by default it take the all place available

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

alignment: alignment of the Rive 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 개

  • rive_loading>=0.1.3 <1.0.0

소스 저장소

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

아직 데이터가 없습니다.