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

show_up_animation のカバー
パッケージ詳細v2.1.2

show_up_animation

"表示"アニメーションの実装を簡素化するためのFlutterパッケージ

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
1660
いいね数
175
Pub ポイント
160

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

flutter pub add show_up_animation

パッケージ概要

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

ウィジェットがカスタマイズ可能なタイミングと効果で画面にスムーズに表示される「ショーアップ」アニメーションの作成を簡素化するためのFlutterパッケージです。動的なコンテンツを持つアプリにおけるユーザー体験を向上させるために、要素を画面にアニメーション表示するための明快で直感的なAPIを提供します。本パッケージはモバイル、ウェブ、デスクトップを含むすべての主要プラットフォームをサポートしており、デバイス間での一貫した動作を保証します。開発者は、複雑なアニメーションロジックを書かずに、任意のウィジェットにエントリーアニメーションを簡単に適用できます。

用途

  • オンボーディング画面
  • コンテンツの読み込み遷移
  • リスト項目のフェードインアニメーション
  • モーダルポップアップのエントリ
  • 動的UIの更新

主な機能

  • 入場アニメーション用のシンプルな API
  • カスタマイズ可能な期間と遅延
  • クロスプラットフォーム互換性
  • 複数のアニメーションタイプをサポートしています
  • 既存のウィジェットとの簡単な統合

適している対象

  • 初心者のFlutter開発者
  • マイクロインタラクションを実装するUI/UXデザイナー
  • 滑らかな視覚的遷移を必要とするアプリ
  • 動的コンテンツ読み込みを備えたプロジェクト
  • アニメーションを通じたユーザー参加の向上

注意事項

  • 過剰に使用するとパフォーマンスに影響を与える可能性があります
  • 基本的なアニメーション以外のカスタマイズは限られている
  • 不快な効果を避けるために、タイミングに注意が必要です
  • 複雑なアニメーションシーケンスには適していません
  • UXの明確性を保つために、控えめに使用することをお勧めします

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

show_up_animation Build Status

A flutter package to simplify the implementation of "show up" animation

Getting Started

Install dependencies

dependencies:
  show_up_animation: ^2.1.2

Then import wherever you want to implement the animation

import 'package:show_up_animation/show_up_animation.dart';
ShowUpAnimation

Wrap any widget you want to animate inside ShowUpAnimation widget and provide a Duration() to delayStart field to control after how much delay the animation fires.

ShowUpAnimation(
  delayStart: Duration(seconds: 1),
  animationDuration: Duration(seconds: 1),
  curve: Curves.bounceIn,
  direction: Direction.vertical,
  offset: 0.5,
  child: YourWidget(),
),
ShowUpList

To create a list of "show up" animations, use ShowUpList and provide your list of widgets to children parameter.

ShowUpList(
  direction: Direction.horizontal,
  animationDuration: Duration(milliseconds: 1500),
  delayBetween: Duration(milliseconds: 800),
  offset: -0.2,
  children: <Widget>[
    Widget1(),
    Widget2(),
    Widget3(),
    Widget4(),
  ],
),

Properties

ShowUpAnimation Properties

You can customize how to do you want to animate your child using the parameters described below.

Property Function
child The widget on which to apply the given ShowUpAnimation
offset The offset by which to slide and [child] into view from [Direction]. Use negative value to reverse animation [direction]. Defaults to 0.2
curve The curve used to animate the [child] into view. Defaults to [Curves.easeIn]
direction horizontal or vertical
delayStart The delay with which to animate the [child]. Takes in a [Duration] and defaults to 0 seconds
animationDuration The total duration in which the animation completes. Defaults to 800 milliseconds
ShowUpList Properties
Property Function
children The list of widgets on which to apply the given ShowUpAnimation
offset The offset by which to slide and [child] into view from [Direction]. Use negative value to reverse animation [direction]. Defaults to 0.2
curve The curve used to animate each [child] into view. Defaults to [Curves.easeIn]
direction horizontal or vertical
delayBetween he delay between animating each [children] into view. Takes in a [Duration] and defaults to 300 milliseconds
animationDuration The total duration in which the animation of each child completes. Defaults to 500 milliseconds

Demo

Text demo Show up list demo

カテゴリー

ソースリポジトリ

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

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