-
Notifications
You must be signed in to change notification settings - Fork 9
/
about_us.dart
100 lines (96 loc) · 3.29 KB
/
about_us.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import 'package:ecellapp/core/res/colors.dart';
import 'package:ecellapp/core/res/strings.dart';
import 'package:ecellapp/screens/about_us/tabs/aim/aim.dart';
import 'package:ecellapp/screens/about_us/tabs/team/team.dart';
import 'package:ecellapp/screens/about_us/tabs/team/team_new.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
class AboutUsScreen extends StatefulWidget {
@override
_AboutUsScreenState createState() => _AboutUsScreenState();
}
class _AboutUsScreenState extends State<AboutUsScreen> {
int _currentIndex = 0;
final tabs = [AimScreen(), TeamScreenNew()];
@override
Widget build(BuildContext context) {
return Stack(
children: [
tabs[_currentIndex],
Align(
alignment: Alignment.bottomCenter,
child: _buildBottomNavBar(context),
),
],
);
}
Widget _buildBottomNavBar(context) {
double height = MediaQuery.of(context).size.height;
return ClipRRect(
borderRadius: BorderRadius.all(Radius.circular(40)),
child: Container(
height: height / 10,
child: BottomNavigationBar(
selectedItemColor: Colors.orange[900],
unselectedFontSize: 40,
currentIndex: _currentIndex,
onTap: (int index) {
setState(() {
_currentIndex = index;
});
},
showSelectedLabels: true,
showUnselectedLabels: false,
items: [
BottomNavigationBarItem(
activeIcon: Container(
height: 40,
decoration: BoxDecoration(
shape: BoxShape.circle,
gradient: LinearGradient(colors: <Color>[
C.selectedIconThemeGrad1,
C.selectedIconThemeGrad2,
C.selectedIconThemeGrad3,
], begin: Alignment.topLeft, end: Alignment.bottomRight)),
child: Padding(
padding: const EdgeInsets.all(13.0),
child: Image.asset(
S.assetAIMIcon,
color: Colors.white,
),
),
),
icon: Image.asset(
S.assetAIMIcon,
height: 20,
),
label: "Aim",
),
BottomNavigationBarItem(
activeIcon: Container(
height: 40,
decoration: BoxDecoration(
shape: BoxShape.circle,
gradient: LinearGradient(colors: <Color>[
C.selectedIconThemeGrad1,
C.selectedIconThemeGrad2,
C.selectedIconThemeGrad3,
], begin: Alignment.topLeft, end: Alignment.bottomRight)),
child: Image.asset(
S.assetTeamIcon,
height: 20,
color: Colors.white,
),
),
icon: Image.asset(
S.assetTeamIcon,
height: 20,
),
label: 'Team',
),
],
)),
);
}
}