AnimatedCrossFadePlus는 Flutter의 AnimatedCrossFade를 다중 자식 요소를 지원하고 사용자 정의 가능한 애니메이션을 제공함으로써 향상시켰습니다. 두 개 이상의 위젯 간에 부드러운 전환을 가능하게 하여 복잡한 상태 변화를 가진 동적 UI에 적합합니다. 패키지는 페이드 지속 시간, 곡선 및 정렬과 같은 유연한 구성 옵션을 통해 핵심 기능을 확장하여 플랫폼 간에 부드럽고 반응성 있는 시각 효과를 보장합니다. 봐라플레이트 코드 없이 고급 전환 제어를 원하는 개발자를 위한 것입니다.
사용 사례
다중 위젯 상태 전이
동적 UI 콘텐츠 교체
사용자 정의 가능한 페이드 애니메이션
복잡한 화면 전환
인터랙티브 앱 인터페이스
부드러운 테마 또는 모드 전환
주요 기능
여러 자식 요소 지원
사용자 정의 가능한 애니메이션 곡선
사용자 정의 가능한 페이드 지속 시간
유연한 정렬 옵션
크로스 플랫폼 호환성
최소한의 설정 필요
적합한 대상
다중 상태 전이가 필요한 개발자
유연한 애니메이션에 집중하는 UI 디자이너
동적 콘텐츠 전환을 지원하는 앱
재사용 가능한 전환 구성 요소가 필요한 프로젝트
인터랙티브 대시보드 또는 워즈드를 구축하는 팀
고려 사항
많은 자식이 있을 경우 복잡성이 증가할 수 있습니다
애니메이션 매개변수를 신중하게 조정해야 합니다
간단한 일대일 전환에 적합하지 않습니다
중량 위젯 사용 시 성능 영향
기본 사용법 외에 문서가 제한적
경량 또는 최적화된 자식 위젯과 함께 사용하는 것이 가장 좋습니다
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
Animated Cross Fade Plus
A powerful Flutter package that enhances the traditional AnimatedCrossFade widget with support for multiple children, auto-play capabilities, and smooth transitions.
Demo
Auto-Play Carousel
Manual Navigation
Youtube Video
🎥 Check out the tutorial video on my YouTube channel to see it in action! Youtube video
Features 🚀
✨ Support for unlimited children (not just two like AnimatedCrossFade)
finalGlobalKey<AnimatedCrossFadePlusState> _key = GlobalKey();
// Navigation
_key.currentState?.animateToIndex(2); // Navigate to specific index// Auto-play control is handled through the autoPlay property// Toggle by updating the widget's autoPlay value
Complete Examples 📱
Check out the example folder for complete implementation examples:
Auto-play carousel with scale transitions
Manual navigation with slide and fade transitions
Progress indicators
Play/pause controls
Contributing 🤝
Contributions are welcome! Please feel free to submit issues and pull requests.
Fork it
Create your feature branch (git checkout -b feature/amazing)