-
Notifications
You must be signed in to change notification settings - Fork 1
/
home.dart
55 lines (50 loc) · 1.5 KB
/
home.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import 'package:flutter/material.dart';
import 'package:goviguru_mobile/UI/chat.dart';
class Home extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
debugShowCheckedModeBanner: false,
color: Colors.yellow,
home: DefaultTabController(
length: 3,
child: new Scaffold(
appBar: AppBar(
backgroundColor: Colors.green,
title: const Text('Forum'),
),
body: TabBarView(
children: [
new Container(
color: Colors.yellow[100],
),
new Container(color: Colors.yellow[200],),
new Container(
color: Colors.yellow[300],
),
],
),
bottomNavigationBar: new TabBar(
tabs: [
Tab(
icon: new Icon(Icons.forum),
),
Tab(
icon: new Icon(Icons.email),
),
Tab(
icon: new Icon(Icons.edit),
),
],
labelColor: Colors.yellow,
unselectedLabelColor: Colors.white,
indicatorSize: TabBarIndicatorSize.label,
indicatorPadding: EdgeInsets.all(5.0),
indicatorColor: Colors.yellow,
),
backgroundColor: Colors.green,
),
),
);
}
}