Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return DefaultTabController(
- length: 2,
- child: Scaffold(
- appBar: PreferredSize(
- child: AppBar(
- backgroundColor: Colors.greenAccent,
- bottom: TabBar(
- controller: tabController,
- tabs: [
- Tab(
- child: Text("Login"),
- ),
- Tab(
- child: Text("Sign Up"),
- ),
- ],
- indicatorColor: Colors.black,
- ),
- flexibleSpace: Container(
- decoration: BoxDecoration(
- gradient: LinearGradient(
- colors: [
- Colors.red,
- Colors.orange,
- ],
- ),
- ),
- ),
- ),
- preferredSize: Size.fromHeight(200.0),
- ),
- body: TabBarView(
- controller: tabController,
- children: [
- LoginApp(),
- SignUpApp(),
- ],
- ),
- ),
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement