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

entry のカバー
パッケージ詳細v1.0.3

entry

ウィジェットを生き生きとさせましょう – Entry を使えば、ウィジェットを表示状態に簡単にアニメーションできます。1つのウィジェットで不透明度、スケール、位置、角度のアニメーションが可能になります。

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

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

flutter pub add entry

パッケージ概要

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

Entryは、不透明度、スケール、位置、回転のスムーズな遷移を可能にすることで、ウィジェットアニメーションを簡素化するFlutterパッケージです。1つのウィジェットで最小限のコードで要素を画面にアニメーション表示でき、魅力的なUIを作成するのに最適です。Android、iOS、Web、macOS、Windows、Linuxなどすべての主要プラットフォームをサポートしており、デバイス間で一貫した動作を保証します。パッケージは軽量で、統合が簡単であり、一般的なアニメーションニーズに向けた直感的な構文に焦点を当てています。

用途

  • オンボーディング画面
  • 読み込みインジケーター
  • 動的リスト項目の表示
  • モーダルポップアップ
  • ページ遷移
  • インタラクティブ要素のハイライト

主な機能

  • 単一ウィジェットアニメーション制御
  • 不透明度、スケール、位置、回転をサポート
  • クロスプラットフォーム互換性
  • 最小限のセットアップ
  • スムーズなデフォルトのイージング
  • カスタマイズ可能な期間と遅延

適している対象

  • 初心者のFlutter開発者
  • 迅速なアニメーションを求めるUI/UXデザイナー
  • インタラクティブまたは動的なコンテンツを含むアプリ
  • 迅速なUI変更のプロトタイピング
  • 繊細なエントリーエフェクトを必要とするプロジェクト

注意事項

  • 基本的な変形および不透明度アニメーションに限定
  • 複雑な振り付けシーケンスには適していません
  • 高度な使用ケースには追加の状態管理が必要になる場合があります
  • 多数の同時アニメーションによるパフォーマンスへの影響

元の README

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

entry

Entry

Pub Package Platform

CodeFactor CodeFactor


This Flutter package introduces a new widget : Entry.

It lets you simply animate a widget into a visible state.

  • Don't just display widgets : make them appear (and disappear).
  • Lightweight and flexible : one widget is all you need.
  • Wrap a widget with an Entry.all and watch it come to life.

Entry animates opacity, scale, position and angle concurrently.

You can visualize the Curves constants on its documentation page.

🏭 Constructors

Default

Entry({key, delay, duration, curve, visible, opacity, scale, xOffset, yOffset, angle, child})

This constructor is motionless by default.

It includes every parameter available in named constructors.

Named

Entry has four named constructors :

  1. Entry.all({visible, opacity, scale, xOffset, yOffset, angle})

.all makes use of every animation by default, except for angle and xOffset.

The three others are each dedicated to a single animation :

  1. Entry.opacity({opacity})
  2. Entry.scale({scale})
  3. Entry.offset({xOffset, yOffset})

The key, delay, duration, curve, visible and child parameters are omitted here.

💕 Combining entries

Wrapping an Entry with another one works just as you expect it.

By playing with all the parameters, possibilities are endless.

You can copy one of the examples and start from there.

See in action

entry

👷 Grid builders

Fixed crossed-axis count

Using Entry with grid builders can create a staggered effect :

  • Wrap the generated child with an Entry widget
  • Multiply the delay value by the index % crossAxisCount

In result, the widgets of a same row will appear after each other.

See in action

entry

Randomization

You can set your delay and/or duration to a random number :

delay: Duration(milliseconds: random.nextInt(300))

This makes the entries look more independent from each other.

See in action

entry

✊ Motivation

  • Animations are key to elevate and refine the user experience.
  • By default, all widgets appear instantly. It feels basic, almost webpage-like.
  • Flutter doesn't provide a simple way to delay and animate a widget's entry into view.
  • Animations overall implies a lot of complexity and boilerplate code.
  • I got tired of copying the same file over multiple projects.

🙏 Credit

A special thank you to Felix Blaschke for his simple_animations package. This package literally depends on it.

カテゴリー

依存関係

依存関係一覧 2 件

ソースリポジトリ

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

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