ExplodeView는 이미지를 작은 입자로 분해하여 시각적으로 강렬한 효과를 만드는 Flutter 애니메이션 라이브러리입니다. 이미지를 화면에서 동적이고 매력적인 방식으로 제거해야 하는 전환에 이상적이며, 부드럽고 사용자 정의 가능한 애니메이션을 통해 사용자 경험을 향상시킵니다. 이 패키지는 복잡한 수동 구현 없이도 고성능 입자 효과를 제공하기 위해 Flutter의 렌더링 기능을 활용합니다. 특히 스와이프 삭제나 인터랙티브 사진 갤러리와 같은 이미지 제거가 포함된 앱 인터페이스에서 특히 유용합니다. 이 라이브러리는 오픈소스이며 커뮤니티 주도 프로젝트에 의해 유지 관리됩니다.
사용 사례
이미지 제거 전환
인터랙티브 사진 갤러리
스와이프 삭제 애니메이션
앱 온보딩 시퀀스
삭제에 대한 시각적 피드백
주요 기능
입자 기반 이미지 폭발
사용자 지정 가능한 애니메이션 속도
부드럽고 성능이 뛰어난 렌더링
오픈소스이며 커뮤니티 유지보수
pub를 통한 간편한 통합
사용자 정의 입자 모양 지원
적합한 대상
UI 전환에서 시각적인 매력을 찾는 개발자
상호작용형 이미지 처리 기능을 갖춘 앱
디자인 중심의 플러터 애플리케이션
매력적인 사용자 상호작용 프로토타이핑
애니메이션 품질을 중시하는 프로젝트
고려 사항
저사양 기기에서 성능에 영향을 미칠 수 있습니다
최적의 시각적 결과를 얻기 위해 신중한 튜닝이 필요합니다
제한된 플랫폼별 사용자 지정
짧은 지속 시간의 애니메이션에 적합
정적 또는 비상호작용 콘텐츠에 적합하지 않음
원본 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.
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.