Tab
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://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