드래그 가능한 슬라이더를 사용하여 두 이미지 간의 시각적 차이를 쉽게 표시하는 플러터 패키지입니다. 부드러운 전환 효과와 함께 양쪽을 비교할 수 있으며, 사진 편집, 의료 영상 또는 리노베이션 미리보기와 같은 전후 비교 시나리오에 적합합니다. 이 패키지는 null 안전성을 보장하며 Android, iOS, 웹, macOS, Windows, Linux 등 다양한 플랫폼을 지원합니다. 사용자가 이미지 변경 사항을 상호작용적으로 탐색할 수 있도록 직관적인 인터페이스를 제공합니다.
사용 사례
사진 편집 비교
의료 영상 분석
주택 리모델링 미리보기
전후 제품 리뷰
사용자 경험 테스트
주요 기능
이미지 비교용 드래그 가능한 슬라이더
널 안전한 Dart 구현
크로스 플랫폼 지원
부드러운 전환 효과
간단한 API 통합
반응형 디자인
적합한 대상
이미지 비교 도구를 개발하는 개발자
시각적 변경 추적을 필요로 하는 앱
교육 또는 진단용 응용 프로그램
인터랙티브 미디어 프레젠테이션
고려 사항
최적의 결과를 얻으려면 고품질 이미지 2개가 필요합니다
큰 이미지 파일을 사용할 경우 성능이 달라질 수 있습니다
슬라이더 외관에 대한 사용자 정의 옵션이 제한되어 있음
정적 이미지 쌍에 가장 적합
비디오 또는 애니메이션 콘텐츠용으로 설계되지 않음
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
👏 Before After
A flutter package which makes it easier to display the differences between two images..
The source code is 100% Dart, and everything resides in the /lib folder.
🔅 Gifs
💻 Installation
In the dependencies: section of your pubspec.yaml, add the following line:
All customizable attributes for BeforeAfter Widget
Attribute Name
Example Value
Description
beforeImage (Widget)
Image.asset('assets/before.jpg')
Sets the Before Image
afterImage (Widget)
Image.asset('assets/after.jpg')
Sets the After Image
isVertical (bool)
false
Sets the orientation of the slider
imageHeight (double)
100.0
Sets height of both the images
imageWidth (double)
200.0
Sets width of the images
imageCornerRadius (double)
16.0
Sets the corner radius of the images
thumbColor (Color)
Colors.red
Sets the color of the slider
thumbRadius (double)
16.0
Sets the radius of the thumb circle
overlayColor (Color)
Colors.yellow
Sets the color of the slider thumb overlay
👍 How to Contribute
Fork it
Create your feature branch (git checkout -b my-new-feature)
Commit your changes (git commit -am 'Add some feature')
Push to the branch (git push origin my-new-feature)
Create new Pull Request
📃 License
Copyright (c) 2022 Asad Khan
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Getting Started
For help getting started with Flutter, view our online documentation.
For help on editing package code, view the documentation.