diff --git a/lib/views/profile/profile_header_widget.dart b/lib/views/profile/profile_header_widget.dart index 3733f96..f223ea3 100644 --- a/lib/views/profile/profile_header_widget.dart +++ b/lib/views/profile/profile_header_widget.dart @@ -12,22 +12,25 @@ class ProfileHeader extends StatelessWidget { Widget build(BuildContext context) { return Container( color: Colors.white, - child: Padding( - padding: const EdgeInsets.fromLTRB(20, 62, 20, 24), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - // 유저 정보가 있으면 이메일을 보여주고, 없으면 로그인 버튼 보여줌 - user != null - ? Text("오늘도 이어립스 해볼까요, ${user!.email}") - : GestureDetector( - onTap: () => Get.to(() => LoginScreen()), - child: const Text( - "로그인 하러가기", - style: TextStyle(color: Colors.blue), - ), - ), - ], + child: GestureDetector( + onTap: () => user != null ? null : Get.to(() => LoginScreen()), + child: Container( + color: Colors.white, + child: Padding( + padding: const EdgeInsets.fromLTRB(20, 62, 20, 24), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + // 유저 정보가 있으면 이메일을 보여주고, 없으면 로그인 버튼 보여줌 + user != null + ? Text("오늘도 이어립스 해볼까요, ${user!.email}") + : const Text( + "로그인 하러가기", + style: TextStyle(color: Colors.blue), + ), + ], + ), + ), ), ), );