パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.1.1

rive_splash_screen

アプリの初期化に必要な作業が完了するまで、Riveアニメーション付きのスプラッシュ画面を表示するための支援ツール

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
229
いいね数
59
Pub ポイント
140

パッケージをインストール

flutter pub add rive_splash_screen

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Flutterパッケージで、アプリの初期化中にRiveアニメーションを備えたスプラッシュスクリーンを表示できるようにします。起動中の滑らかでインタラクティブなアニメーションの統合を簡素化し、洗練されたユーザー体験を確保します。初期化作業が完了すると、ロジックの読み込みと遷移をシームレスに処理します。モバイル、Web、デスクトップなど複数のプラットフォームをサポートしており、視覚的に魅力的なオンボーディング体験が必要なアプリに最適です。

用途

  • アニメーション付きスプラッシュでのアプリオンボーディング
  • ロード状態の可視化
  • インタラクティブなアニメーションによるブランディング
  • 遅延初期化処理
  • クロスプラットフォームのスプラッシュ画面

主な機能

  • 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

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。