搜尋套件、儲存庫與 APP 分類

套件詳情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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。