-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhistory.dart
145 lines (143 loc) · 4.82 KB
/
history.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
import 'package:flutter/material.dart';
import 'camera.dart';
import 'home.dart';
import 'community.dart';
import 'profile.dart';
class History extends StatelessWidget {
const History({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: const Color(0xffa5e0a6),
body: Center(
child: Text(
'Scheduled to open',
style: TextStyle(
fontSize: 25,
fontWeight: FontWeight.w400,
color: Colors.black.withOpacity(0.7),
),
),
),
bottomNavigationBar: Stack(
children: [
BottomNavigationBar(
type: BottomNavigationBarType.fixed,
selectedItemColor: const Color(0xff49c14e),
onTap: (int index) {
switch (index) {
case 0:
Navigator.push(
context,
PageRouteBuilder(
pageBuilder: (context, animation, secondaryAnimation) =>
const Home(),
transitionDuration:
const Duration(seconds: 0), // 애니메이션 시간을 0으로 설정
),
);
break;
case 1:
Navigator.push(
context,
PageRouteBuilder(
pageBuilder: (context, animation, secondaryAnimation) =>
const History(),
transitionDuration:
const Duration(seconds: 0), // 애니메이션 시간을 0으로 설정
),
);
break;
case 2:
Navigator.push(
context,
PageRouteBuilder(
pageBuilder: (context, animation, secondaryAnimation) =>
const CameraHome(),
transitionDuration:
const Duration(seconds: 0), // 애니메이션 시간을 0으로 설정
),
);
break;
case 3:
Navigator.push(
context,
PageRouteBuilder(
pageBuilder: (context, animation, secondaryAnimation) =>
const Community(),
transitionDuration:
const Duration(seconds: 0), // 애니메이션 시간을 0으로 설정
),
);
break;
case 4:
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => const Profile(),
),
);
break;
default:
break;
}
},
currentIndex: 1,
items: const [
BottomNavigationBarItem(
icon: Icon(Icons.home, size: 32), label: 'Home'),
BottomNavigationBarItem(
icon: Icon(Icons.article, size: 32), label: 'History'),
BottomNavigationBarItem(
icon: Icon(
Icons.camera_alt_sharp,
size: 50,
),
label: ''),
BottomNavigationBarItem(
icon: Icon(Icons.language, size: 32), label: 'Community'),
BottomNavigationBarItem(
icon: Icon(Icons.person, size: 32), label: 'Profile'),
],
),
Positioned(
top: 0,
left: MediaQuery.of(context).size.width / 2.4,
child: GestureDetector(
onTap: () {
Navigator.push(
context,
PageRouteBuilder(
pageBuilder: (context, animation, secondaryAnimation) =>
const CameraHome(),
transitionDuration: const Duration(seconds: 0),
),
);
},
child: Container(
width: 70,
height: 70,
decoration: const BoxDecoration(
shape: BoxShape.circle,
color: Color(0xff49c14e),
boxShadow: [
BoxShadow(
color: Color(0xff49c14e),
blurRadius: 10,
spreadRadius: 5,
),
],
),
child: const Icon(
Icons.camera_alt_sharp,
color: Colors.white,
size: 35,
),
),
),
),
],
),
);
}
}