본문 바로가기

카테고리 없음

Flutter 공부_4

-Animation Controller

bool _isPaused = false;

Animated Opacity(

opacity: _isPaused ? 1 : 0,

duration : _animationDuration

child : const FaIcon())

 

late final AnimationController _animationController

_animationController = AnimationController(vsync: this, );

 

- with SingleTickerProviderStateMixin 

vsync => 애니메이션의 불필요한 자원 소요를 막음

Ticker를 제공하는 클래스

 

- RefreshIndicator : 아래로 드래그하는 새로고침 위젯