Coaspe

Flutter - IndexedStack 본문

Flutter/API

Flutter - IndexedStack

Coaspe 2023. 2. 17. 13:45

List 안에 있는 children들 중 하나의 child를 보여주는 Stack 입니다.

화면에 보여지는 자식은 주어진 index 중 하나 입니다. 스택은 항상 가장 큰 자식 만큼 큽니다.

만약 값이 null 이면 아무것도 보이지 않습니다.

 

상속 구조

생성자

IndexedStack({

Key? key, 

AlignmentGeometry alignment = AlignmentDirectional.topStart, 

TextDirection? textDirection, 

StackFit sizing = StackFit.loose, 

int? index = 0, 

List<Widget> children = const <Widget>[]

})

 

  1. alignment: 스택 안의 non-positioned, partially-positioned 자식들의 배열을 결정합니다.
  2. sizing: 스택 안의 non-positioned 자식들의 크기를 결정합니다.

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

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