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

loading_animations のカバー
パッケージ詳細v2.2.0

loading_animations

シンプルながらも非常にカスタマイズ可能なロードアニメーションのセットを備えたFlutterパッケージ。

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

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

flutter pub add loading_animations

パッケージ概要

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

Flutterパッケージで、アプリ内での使用に向けたシンプルで高カスタマイズ性を持つローディングアニメーションのコレクションを提供します。待機状態におけるユーザー体験を向上させるために設計されており、滑らかで視覚的に魅力的なインジケーターを提供し、さまざまなUIコンポーネントに簡単に統合できます。アニメーションは軽量であり、複数のプラットフォームをサポートしており、Android、iOS、Web、macOS、Windows、Linuxで一貫したパフォーマンスを確保します。色、サイズ、スピード、アニメーションスタイルなどのカスタマイズオプションにより、異なるデザインニーズに適応可能です。

用途

  • フォーム内のロードインジケーター
  • スプラッシュ画面
  • データフェッチ状態
  • ページ遷移
  • バックグラウンドタスクの進行状況
  • カスタムスパイラーデザイン

主な機能

  • 高度カスタマイズ可能なアニメーション
  • すべての主要プラットフォームをサポートしています
  • 軽量でパフォーマンスに優れる
  • Flutter ウィジェットとの簡単な統合
  • 複数のアニメーションスタイル
  • カスタマイズ可能な色と速度

適している対象

  • 迅速なロードインジケーターを求める開発者
  • 一貫したUIフィードバックを必要とするアプリ
  • 柔軟なアニメーションオプションを望むデザイナー
  • 複数プラットフォーム向けのプロジェクト
  • プロトタイピングと迅速な開発

注意事項

  • 基本的なアニメーションタイプに限定
  • 複雑なUIには追加のスタイリングが必要になる場合があります
  • 非常に高頻度の更新には最適化されていません
  • シンプルな読み込みシナリオに最適
  • 組み込みのローカリゼーションまたはアクセシビリティ機能なし

元の README

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

Flutter Loading Animations Pub

A simple yet very customizable set of loading animations for Flutter projects.

Installation

Add the following to your pubspec.yaml file:

...
dependencies:
  ...
  loading_animations: "^2.1.0"
...

Then import the file to your project:

import 'package:loading_animations/loading_animations.dart';

How to use

Choose a loading animation from the list:

Flipping
  • LoadingFlipping.circle()
  • LoadingFlipping.square()
Rotating
  • LoadingRotating.square()
Double Flipping
  • LoadingDoubleFlipping.circle()
  • LoadingDoubleFlipping.square()
Bouncing Grid
  • LoadingBouncingGrid.circle()
  • LoadingBouncingGrid.square()
Filling
  • LoadingFilling.square()
Fading Line
  • LoadingFadingLine.circle()
  • LoadingFadingLine.square()
Bouncing Line
  • LoadingBouncingLine.circle()
  • LoadingBouncingLine.square()
Jumping Line
  • LoadingJumpingLine.circle()
  • LoadingJumpingLine.square()
Bumping Line
  • LoadingBumpingLine.circle()
  • LoadingBumpingLine.square()

Then add the following code:

LoadingFlipping.circle(
  color: Colors.blue,
);

Or you can customize it a bit:

LoadingFlipping.square(
  borderColor: Colors.cyan,
  size: 30.0,
);

Or customize it even more!

LoadingFlipping.circle(
  borderColor: Colors.cyan,
  borderSize: 3.0,
  size: 30.0,
  backgroundColor: Colors.cyanAccent,
  duration: Duration(milliseconds: 500),
);

For more customization, please look inside the loading animation files.

Note: all the animations come ready to go just by calling LoadingDoubleFlipping.square(), for example.

Many basic animations contain .circle() and .square() variations by default.

Examples

Note: the following gifs are not yet updated to reflect version 2.1.0

For a more true experience of the animations and its variations, download the example project and run using flutter run --profile.

LoadingFlipCircle() LoadingRotatingSquare()
LoadingFlipBox() LoadingBouncingGrid()

Contribution

Please feel free to:

  • ask questions
  • report issues and bugs
  • suggest code improvements
  • request new features

Create an issue or a pull request and I will be more than happy to review it and add to the project.

Thanks

This project was heavily based on cssfx

If you like this package, don't forget to hit the ⭐️ button!

Thanks and happy coding 👻

カテゴリー

ソースリポジトリ

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