조용한 담장

Tab 본문

Flutter

Tab

iosroid 2019. 7. 24. 16:51

Tab

Tab, TabBar, TabBarView, TabController

Tab

A material design TabBar tab. If both icon and text are provided, the text is displayed below the icon.

TabBar

A material design widget that displays a horizontal row of tabs. Typically created as the AppBar.bottom part of an AppBar and in conjunction with a TabBarView.

TabBarView

A page view that displays the widget which corresponds to the currently selected tab. This widget is typically used in conjunction with a TabBar.

TabController

Coordinates tab selection between a TabBar and a TabBarView.

Simple Tab, DefaultTabController

기본 디자인(Material) 을 그대로 사용할땐 DefaultTabController 를 사용해 본다.

Tab

TabController 는 TabBar 와 TabBarView 에 적용한다.

TabController.animateTo()

Immediately sets index and previousIndex and then plays the animation from its current value to index.

특정 인텍스로 바로 이동.

Reference

https://flutter.dev/docs

https://api.flutter.dev/flutter/material/Tab-class.html

https://api.flutter.dev/flutter/material/TabBar-class.html

https://api.flutter.dev/flutter/material/TabBarView-class.html

https://api.flutter.dev/flutter/material/TabController-class.html

https://material.io/design/components/tabs.html#usage

'Flutter' 카테고리의 다른 글

url_launcher  (0) 2019.08.07
Flutter : Platform-specific code  (0) 2019.08.06
Drawer  (0) 2019.08.02
AnimatedSwitcher  (0) 2019.07.31
BottomNavigationBar, BottomAppBar  (0) 2019.07.29
Comments