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

パッケージ詳細v4.0.0

flare_splash_screen

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

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

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

flutter pub add flare_splash_screen

パッケージ概要

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

Flareアニメを使用してスプラッシュスクリーンを可能にするFlutterパッケージで、重要なアプリ初期化タスクが完了するまで画面をアクティブに保ちます。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 件

ソースリポジトリ

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

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