From 091843f70a44d16bd93ab3d0a4ca2d28f0240dd9 Mon Sep 17 00:00:00 2001 From: doch13_ Date: Mon, 19 Dec 2022 01:25:45 +0900 Subject: [PATCH] feat: MyProfile - ApplicationStatus Btn --- lib/screens/profile/my_profile.dart | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/screens/profile/my_profile.dart b/lib/screens/profile/my_profile.dart index 3d93b44..c992c00 100644 --- a/lib/screens/profile/my_profile.dart +++ b/lib/screens/profile/my_profile.dart @@ -245,6 +245,15 @@ class MyProfile extends GetWidget { } List getStudentMenu() { + if (controller.user?.userType! == DimigoinUserType.student) { + return [ + SimpleListButton(title: "간편식, 선후밥 신청 현황", iconName: "signDocu", clickAction: () => Get.to(ApplicationStatus())), + ]; + } else { + return []; + } + } + void _launchURL(String _url) async => await canLaunch(_url) ? await launch(_url) : throw 'Could not launch $_url'; } \ No newline at end of file