-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom_drawer.dart
206 lines (199 loc) · 7.96 KB
/
custom_drawer.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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
import 'package:flutter/material.dart';
import 'package:youth_playground/screens/main_screen.dart';
import '../screens/management_screen.dart';
/// 네비게이션 메뉴
class DrawerWidget extends StatefulWidget {
final DrawerSelectionCallback onCompleteSchedule;
const DrawerWidget({super.key, required this.onCompleteSchedule});
_DrawerScreenState createState() => _DrawerScreenState();
}
class _DrawerScreenState extends State<DrawerWidget> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return Drawer(
child: Builder(builder: (BuildContext context) {
return Column(
children: [
const SizedBox(height: 32,), // 상단 여백
GestureDetector(
behavior: HitTestBehavior.opaque,
onLongPress: () {},
onTapDown: (details) {},
onTap: () async {
Navigator.pop(context);
var result = await Navigator.of(context).pushNamed('/schedulerequest');
if (result != null) {
if (result == "from_schedule_request_screen") {
widget.onCompleteSchedule("from_schedule_request_screen");
}
}
},
child: Container(
alignment: Alignment.centerLeft,
margin: const EdgeInsets.only(top: 18.35, bottom: 16.95,left: 20.97,right: 19.22),
child: const Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
"일정 생성 요청하기",
style: TextStyle(fontSize: 16.6),
),
Icon(Icons.chevron_right)
],
),
),
),
Container(
alignment: Alignment.centerLeft,
margin: const EdgeInsets.only(left: 13.98, right: 13.98),
child: const Divider(
height: 0.87,
color: Color(0xffebebeb),
)),
GestureDetector(
behavior: HitTestBehavior.opaque,
onLongPress: () {},
onTapDown: (details) {},
onTap: () {
Navigator.pop(context);
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => PasswordDialogScreen(),
),
);
},
child: Container(
alignment: Alignment.centerLeft,
margin: const EdgeInsets.only(top: 18.35, bottom: 16.95,left: 20.97,right: 19.22),
child: const Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
"관리자 페이지",
style: TextStyle(fontSize: 16.6),
),
Icon(Icons.chevron_right)
],
),
),
),
Container(
alignment: Alignment.centerLeft,
margin: const EdgeInsets.only(left: 13.98, right: 13.98),
child: const Divider(
height: 0.87,
color: Color(0xffebebeb),
)),
// GestureDetector(
// behavior: HitTestBehavior.opaque,
// onLongPress: () {},
// onTapDown: (details) {},
// onTap: () {
// // todo - 메뉴 클릭에 대한 화면 이동 로직 구현 필요
// Navigator.pop(context);
// Navigator.push(
// context,
// MaterialPageRoute(
// builder: (context) => MainScreen(),
// ),
// );
// },
// child: Container(
// alignment: Alignment.centerLeft,
// margin: const EdgeInsets.only(top: 18.35, bottom: 16.95,left: 20.97,right: 19.22),
// child: const Row(
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
// children: [
// Text(
// "만든 사람들",
// style: TextStyle(fontSize: 16.6),
// ),
// Icon(Icons.chevron_right)
// ],
// ),
// ),
// ),
// Container(
// alignment: Alignment.centerLeft,
// margin: const EdgeInsets.only(left: 13.98, right: 13.98),
// child: const Divider(
// height: 0.87,
// color: Color(0xffebebeb),
// )),
// GestureDetector(
// behavior: HitTestBehavior.opaque,
// onLongPress: () {},
// onTapDown: (details) {},
// onTap: () {
// Navigator.pop(context);
// // todo - 메뉴 클릭에 대한 화면 이동 로직 구현 필요
// Navigator.push(
// context,
// MaterialPageRoute(
// builder: (context) => MainScreen(),
// ),
// );
// },
// child: Container(
// alignment: Alignment.centerLeft,
// margin: const EdgeInsets.only(top: 18.35, bottom: 16.95,left: 20.97,right: 19.22),
// child: const Row(
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
// children: [
// Text(
// "놀이터 유틸리티 이용방법",
// style: TextStyle(fontSize: 16.6),
// ),
// Icon(Icons.chevron_right)
// ],
// ),
// ),
// ),
// Container(
// alignment: Alignment.centerLeft,
// margin: const EdgeInsets.only(left: 13.98, right: 13.98),
// child: const Divider(
// height: 0.87,
// color: Color(0xffebebeb),
// )),
// GestureDetector(
// behavior: HitTestBehavior.opaque,
// onLongPress: () {},
// onTapDown: (details) {},
// onTap: () {
// Navigator.pop(context);
// // 화면 전환 -> 구독한 알림 설정 화면으로 이동 !
// Navigator.pushNamed(context, '/notificationsetting');
// },
// child: Container(
// alignment: Alignment.centerLeft,
// margin: EdgeInsets.only(top: 18.35, bottom: 16.95,left: 20.97,right: 19.22),
// child: Row(
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
// children: [
// Text(
// "구독한 알림 설정",
// style: TextStyle(fontSize: 16.6),
// ),
// Icon(Icons.chevron_right)
// ],
// ),
// ),
// ),
// Container(
// alignment: Alignment.centerLeft,
// margin: const EdgeInsets.only(left: 13.98, right: 13.98),
// child: const Divider(
// height: 0.87,
// color: Color(0xffebebeb),
// )),
]);
}),
);
}
}