FLUTTER ECOSYSTEM

jaumard/flare_loading

Flare 애니메이션 기반 로딩 위젯으로 아름다운 사용자 정의 로딩 위젯 또는 대화 상자를 만들 수 있습니다

flare_loading 프로젝트 이미지
Stars
25
Forks
14
최근 푸시(UTC)
2021. 4. 16.
프로젝트 상태
활성
Jimmy Aumard GitHub avatar
GITHUB User

Jimmy Aumard ↗

Open source enthousiaste !

Thonon-les-Bains, France공식 웹사이트 ↗
언어DartObjective-CJava

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 3 개
  • flare_flutter^3.0.0
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}

원본 README

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

README 펼치기 / 접기

flare_loading

pub package

Loading widget based on a Flare animation, allow you to create custom loading widgets or dialogs

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

Usage

FlareLoading(
  name: 'animation.flr', 
  startAnimation: 'intro',
  loopAnimation: 'circle',
  endAnimation: 'end',
);

name: path and name of the flare animation

until: callback that return a future to process your initialization

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

loopAnimation: animation name to run in loop

endAnimation: animation name to run once until is complete or isLoading false

startAnimation: animation name to run once as start

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

onSuccess callback called when the animation is finished and isLoading is false or until is complete

onError callback called until has failed

Available 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