Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- import 'my_bottom_sheet_exp.dart';
- class MyTabView extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return DefaultTabController(
- length: 6,
- child: Scaffold(
- appBar: AppBar(
- title: Text("Home Screen"),
- bottom: TabBar(
- labelColor: Colors.black,
- isScrollable: true,
- unselectedLabelColor: Colors.white,
- indicatorColor: Colors.green,
- tabs: [
- Tab(
- text: "Home",
- icon: Icon(Icons.home),
- ),
- Tab(
- child: Text("My Custom"),
- ),
- Tab(
- text: "Games",
- ),
- Tab(
- text: "Home",
- icon: Icon(Icons.home),
- ),
- Tab(
- child: Text("My Custom"),
- ),
- Tab(
- text: "Games",
- ),
- ]),
- ),
- body: TabBarView(children: [
- MyBottomSheet(),
- Container(
- color: Colors.yellow,
- ),
- Container(
- color: Colors.pink,
- ),
- MyBottomSheet(),
- Container(
- color: Colors.yellow,
- ),
- Container(
- color: Colors.pink,
- ),
- ]),
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement