From fddf114e3e331cafcf3bddf0e211ca82c81ef768 Mon Sep 17 00:00:00 2001 From: HuiChan Seo <78739194+seochan99@users.noreply.github.com> Date: Thu, 11 Apr 2024 21:01:05 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Design=20:=20=EB=A1=9C=EA=B7=B8?= =?UTF-8?q?=EC=9D=B8,=20=ED=9A=8C=EC=9B=90=EA=B0=80=EC=9E=85=20=EB=B0=B0?= =?UTF-8?q?=EA=B2=BD=20=ED=9D=B0=EC=83=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/views/auth/email_login_screen.dart | 65 +++++++++++++------------ lib/views/auth/email_signup_screen.dart | 57 ++++++++++++---------- 2 files changed, 64 insertions(+), 58 deletions(-) diff --git a/lib/views/auth/email_login_screen.dart b/lib/views/auth/email_login_screen.dart index d88916d..404333c 100644 --- a/lib/views/auth/email_login_screen.dart +++ b/lib/views/auth/email_login_screen.dart @@ -15,37 +15,40 @@ class EmailLoginScreen extends StatelessWidget { appBar: AppBar( title: Text("email_login_2".tr), ), - body: Padding( - padding: const EdgeInsets.all(20.0), - child: Form( - // 키 값을 ViewModel에서 가져옴 - key: controller.formKey, - child: Column( - children: [ - TextFormField( - controller: controller.emailController, - decoration: InputDecoration(hintText: 'email'.tr), - validator: (value) => controller.emailValidator(value), - ), - TextFormField( - controller: controller.passwordController, - obscureText: true, - decoration: InputDecoration(hintText: 'password'.tr), - validator: (value) => controller.passwordValidator(value), - ), - const SizedBox(height: 20), - ElevatedButton( - // 로그인 메소드 호출 - onPressed: controller.signInWithEmailAndPassword, - child: Text('login'.tr), - ), - const SizedBox(height: 10), - // 회원가입 화면으로 이동 - TextButton( - onPressed: () => Get.to(() => const EmailSignupScreen()), - child: Text("go_signup".tr), - ), - ], + body: Container( + color: Colors.white, + child: Padding( + padding: const EdgeInsets.all(20.0), + child: Form( + // 키 값을 ViewModel에서 가져옴 + key: controller.formKey, + child: Column( + children: [ + TextFormField( + controller: controller.emailController, + decoration: InputDecoration(hintText: 'email'.tr), + validator: (value) => controller.emailValidator(value), + ), + TextFormField( + controller: controller.passwordController, + obscureText: true, + decoration: InputDecoration(hintText: 'password'.tr), + validator: (value) => controller.passwordValidator(value), + ), + const SizedBox(height: 20), + ElevatedButton( + // 로그인 메소드 호출 + onPressed: controller.signInWithEmailAndPassword, + child: Text('login'.tr), + ), + const SizedBox(height: 10), + // 회원가입 화면으로 이동 + TextButton( + onPressed: () => Get.to(() => const EmailSignupScreen()), + child: Text("go_signup".tr), + ), + ], + ), ), ), ), diff --git a/lib/views/auth/email_signup_screen.dart b/lib/views/auth/email_signup_screen.dart index 9138bbe..c6fb3c6 100644 --- a/lib/views/auth/email_signup_screen.dart +++ b/lib/views/auth/email_signup_screen.dart @@ -14,33 +14,36 @@ class EmailSignupScreen extends StatelessWidget { appBar: AppBar( title: Text("email_signup".tr), ), - body: Padding( - padding: const EdgeInsets.all(20.0), - child: Form( - // 키 값을 ViewModel에서 가져옴 - key: controller.formKey, - child: Column( - children: [ - TextFormField( - // 이메일 메소드 호출 - controller: controller.emailController, - decoration: InputDecoration(hintText: 'email'.tr), - validator: (value) => controller.emailValidator(value), - ), - TextFormField( - // 비밀번호 메소드 호출 - controller: controller.passwordController, - obscureText: true, - decoration: InputDecoration(hintText: 'password'.tr), - validator: (value) => controller.passwordValidator(value), - ), - const SizedBox(height: 20), - ElevatedButton( - // 회원가입 메소드 호출 - onPressed: controller.registerWithEmailAndPassword, - child: Text('signup'.tr), - ), - ], + body: Container( + color: Colors.white, + child: Padding( + padding: const EdgeInsets.all(20.0), + child: Form( + // 키 값을 ViewModel에서 가져옴 + key: controller.formKey, + child: Column( + children: [ + TextFormField( + // 이메일 메소드 호출 + controller: controller.emailController, + decoration: InputDecoration(hintText: 'email'.tr), + validator: (value) => controller.emailValidator(value), + ), + TextFormField( + // 비밀번호 메소드 호출 + controller: controller.passwordController, + obscureText: true, + decoration: InputDecoration(hintText: 'password'.tr), + validator: (value) => controller.passwordValidator(value), + ), + const SizedBox(height: 20), + ElevatedButton( + // 회원가입 메소드 호출 + onPressed: controller.registerWithEmailAndPassword, + child: Text('signup'.tr), + ), + ], + ), ), ), ),