Commit c7779ddd authored by Meghana Mahadasyam's avatar Meghana Mahadasyam

Add new file

parent fe5690e7
import 'package:flutter/material.dart';
import './FirstPage.dart' as first;
import './SecondPage.dart' as second;
class MyTabs extends StatefulWidget {
static String tag = "tab-bar";
@override
MyTabsState createState() => new MyTabsState();
}
class MyTabsState extends State<MyTabs> with SingleTickerProviderStateMixin {
TabController controller;
@override
void initState() {
super.initState();
controller = new TabController(vsync: this, length: 3);
}
@override
void dispose() {
controller.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(
title: new Text("List of Problems"),
backgroundColor: Colors.deepOrange,
bottom: new TabBar(
controller: controller,
tabs: <Tab>[
new Tab(text: "Resolved"),
new Tab(text: "Unresoved"),
]
)
),
bottomNavigationBar: new Material(
color: Colors.deepOrange,
child: new TabBar(
controller: controller,
tabs: <Tab>[
new Tab(text: "Resolved"),
new Tab(text: "Unresoved"),
]
)
),
body: new TabBarView(
controller: controller,
children: <Widget>[
new first.First(),
new second.Second(),
]
)
);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment