Coaspe

Flutter - Hero 본문

Flutter/API

Flutter - Hero

Coaspe 2023. 2. 17. 13:50

Constructors

Hero({Key? key, required Object tag, CreateRectTween? createRectTween, HeroFlightShuttleBuilder? flightShuttleBuilder, HeroPlaceholderBuilder? placeholderBuilder, bool transitionOnUserGestures = false, required Widget child})

Properties

1. createRectTween

Starting route에서 목적지로 날아갈 때 목적지 hero의 bound가 어떻게 변화하는지 결정한다.

2. flightShuttleBuilder

선택적인 인자로 hero가 날아갈 때 보여줄 위젯

3. placeholderBuilder

hero의 child가 날아가고 나서 그 자리에 남는 placeholder widget

4. tag

hero를 구분하는 식별자에 해당합니다. 우리가 이동하거나, 돌아오는 PageRoute에 있는 hero의 tag와 현재 hero tag가 일치한다면 hero animation이 발생합니다.

5.trasitionOnUserGesture

IOS의 백스와이프 같은 유저의 제스쳐에 의해 PageRoute transition이 발생했을 때, hero transition을 실행할지 결정합니다.

'Flutter > API' 카테고리의 다른 글

Flutter - CupertinoSliverNavigationBar  (0) 2023.02.17
Flutter - CustomScollView  (0) 2023.02.17
Flutter - SafeArea  (0) 2023.02.17
Flutter - IndexedStack  (0) 2023.02.17
Flutter - BottomNavigationBar  (0) 2023.02.17
Comments