대게 튜토리얼의 온보딩 화면에서 나오는 어플 소개 예시 페이지를 만들고자 할 때 TabBarView를 사용하면 좋을 것 같다.
TabBarView(
children: [
Padding(
padding: EdgeInsets.symmetric(
horizontal: Sizes.size24,
),
child: Column(...),
Padding(
padding: EdgeInsets.symmetric(
horizontal: Sizes.size24,
),
child: Column(...),
Padding(
padding: EdgeInsets.symmetric(
horizontal: Sizes.size24,
),
child: Column(...),
]
DefaultTabController(
length: 3,
child: Scaffold(
body: const SafeArea(
child: TabBarView(
children: [...]
bottomNavigationBar: Container(
padding: const EdgeInsets.symmetric(
vertical: Sizes.size48,
),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
TabPageSelector(
color: Theme.of(context).canvasColor,
selectedColor: Theme.of(context).cardColor,
),
],
),
),