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

パッケージ詳細v1.0.4

explode_view

Flutter用の美しいアニメーションライブラリで、画像を小さな粒子に爆発させる。画面から画像を削除する必要がある場合にいつでもこのパッケージを使用できます。

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

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

flutter pub add explode_view

パッケージ概要

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

ExplodeView は、画像を小さな粒子に分解することで視覚的にインパクトのある効果を生み出す Flutter アニメーションライブラリです。画像を画面からダイナミックで魅力的な方法で削除する必要がある遷移シーンに最適であり、スムーズでカスタマイズ可能なアニメーションによりユーザー体験を向上させます。このパッケージは Flutter のレンダリング機能を活用し、複雑な手動実装なしに高パフォーマンスのパーティクルエフェクトを提供します。特にスワイプして削除する機能やインタラクティブな写真ギャラリーなど、画像の削除を伴うアプリインターフェースで特に有用です。このライブラリはオープンソースであり、コミュニティ主導のプロジェクトによって維持されています。

用途

  • 画像削除のトランジション
  • インタラクティブな写真ギャラリー
  • スワイプ削除アニメーション
  • アプリオンボーディングシーケンス
  • 削除のための視覚フィードバック

主な機能

  • パーティクルベースの画像爆発
  • カスタマイズ可能なアニメーション速度
  • 滑らかでパフォーマンス優れたレンダリング
  • オープンソースでコミュニティメンテナンス
  • pub を通じた簡単な統合
  • カスタムパーティクル形状をサポート

適している対象

  • UIのトランジションに視覚的な魅力を求めている開発者
  • インタラクティブな画像処理を備えたアプリ
  • デザイン重視のFlutterアプリケーション
  • 魅力的なユーザーインタラクションのプロトタイピング
  • アニメーションの品質を重視するプロジェクト

注意事項

  • 低性能デバイスでのパフォーマンスに影響を与える可能性があります
  • 最適な視覚的結果を得るためには、注意深くチューニングが必要です
  • 制限されたプラットフォーム固有のカスタマイズ
  • 短期間のアニメーションに最適
  • 静的または非インタラクティブなコンテンツには適していない

元の README

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


A new open-source Flutter project that enables the developers to quickly enhance the ui of their application and can easily get started with the Flutter animation. The UI has been inspired from Redmi's uninstall application animation shown [here](https://github.com/mdg-soc-19/explode-view/blob/master/gif/explode-view-idea.gif).

This project contains the features of Flutter Animation that are required to complete an amazing Flutter application.

Explore how ExplodeView is made through this blog.

Index

Installing

1. Depend on it

Add this to your package's pubspec.yaml file:

  explode_view: ^1.0.4
2. Install it

You can install packages from the command line:

with pub:

$ pub get  

with Flutter:

$ flutter packages get  

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import  'package:explode_view/explode_view.dart';  

How To Use

Let's get this animation

For the explosion animation in the app, user has to simply add the ExplodeView as a child in any Widget like Stack and many more.

Example Code:

ExplodeView(  
 imagePath: 'assets/images/abc.png',  // path where the image is stored 
 imagePosFromLeft: 	120.0, // set x-coordinate for image 
 imagePosFromRight: 300.0,  // set y-coordinate for image 
);

For more info, please refer to the main.dart in example.

Algorithm

The algorithm used to build this project is as follows:

On clicking the image, the image would shake for some time and will disappear with generation of random particles in that image area and they would scatter farther with fading and upcoming transition and disappear finally on the screen. The colors of the particles are decided by the colors of the pixels of the image which provides the effect of breaking the image into pieces.

For more info, please refer to the explode_view.dart.

Documentation

Dart attribute Datatype Description Default Value
imagePath String The string which gives the path to the image. @required
imagePosFromLeft double The distance from the left edge of the screen. @required
imagePosFromTop double The distance from the top edge of the screen. @required

Bugs/Requests

If you encounter any problems feel free to open an issue. If you feel the library is
missing a feature, please raise a ticket on Github and I'll look into it.
Pull request are also welcome.

License

ExplodeView is licensed under MIT License. View license.

カテゴリー

依存関係

依存関係一覧 2 件

ソースリポジトリ

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

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