-
Notifications
You must be signed in to change notification settings - Fork 0
[UI]승인 대기중 화면 구현 #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[UI]승인 대기중 화면 구현 #41
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| import 'package:code_l/auth/presentation/pages/login/login_page.dart'; | ||
| import 'package:code_l/sign_up/presentation/pages/pending_approval/widgets/pending_app_bar.dart'; | ||
| import 'package:code_l/sign_up/presentation/pages/pending_approval/widgets/pending_profile_button.dart'; | ||
| import 'package:flutter/cupertino.dart'; | ||
| import 'package:flutter/material.dart'; | ||
| import 'package:gif/gif.dart'; | ||
|
|
||
| import '../../../../core/utills/design/app_gaps.dart'; | ||
| import '../../../../core/utills/design/app_typography.dart'; | ||
|
|
||
| class PendingApprovalPage extends StatelessWidget { | ||
| const PendingApprovalPage({super.key}); | ||
|
|
||
| @override | ||
| Widget build(BuildContext context) { | ||
| var screenWidth = MediaQuery.of(context).size.width; | ||
| return Scaffold( | ||
| appBar: PendingAppBar(), | ||
| bottomNavigationBar: PendingProfileButton( | ||
| enabled: true, | ||
| onPressed: (){Navigator.push( | ||
| context, | ||
| MaterialPageRoute( | ||
| builder: (context) => LoginPage(), | ||
| ), | ||
| );} | ||
| ), | ||
| body: SafeArea( | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 정말 안전한 영역인가요?
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 예 안전한 영역에 뷰를 그립니다~ |
||
| child: Padding( | ||
| padding: const EdgeInsets.all(AppGaps.gap24), | ||
| child: Column( | ||
| crossAxisAlignment: CrossAxisAlignment.center, | ||
| children: [ | ||
| SizedBox(height: 130,width: screenWidth,), | ||
| Gif( | ||
| image: AssetImage("assets/icons/paper_tray.gif"), | ||
| autostart: Autostart.loop, | ||
| placeholder: (context) => | ||
| const Center(child: CircularProgressIndicator()), | ||
| ), | ||
| Text("잠시만 기다려 주세요",style: AppTypography.header1,), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 만약 사용자가 안기다리면 어떡하죠?
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 기다리세요 조호연님
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 기다림의 미학 드십시오 |
||
| SizedBox(height: 24,), | ||
| Text("운영진들이 사용자님의 정보를",style: AppTypography.subtitle3,), | ||
| Text("확인 중 입니다.",style: AppTypography.subtitle3,), | ||
| ], | ||
| ), | ||
| ), | ||
| ), | ||
| ); | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| import 'package:code_l/core/utills/design/app_colors.dart'; | ||
| import 'package:code_l/core/utills/design/app_typography.dart'; | ||
| import 'package:flutter/material.dart'; | ||
|
|
||
| class PendingAppBar extends StatelessWidget implements PreferredSizeWidget { | ||
| const PendingAppBar({super.key}); | ||
|
|
||
| @override | ||
| Size get preferredSize => Size.fromHeight(56); | ||
|
|
||
| @override | ||
| Widget build(BuildContext context) { | ||
|
|
||
| return SafeArea( | ||
| child: Padding( | ||
| padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8), | ||
| child: Row( | ||
| mainAxisAlignment: MainAxisAlignment.spaceBetween, | ||
| children: [ | ||
| SizedBox(width: 40,), | ||
| Text("승인 대기중",style: AppTypography.subtitle2,), | ||
| IconButton( | ||
| icon: Icon(Icons.close), | ||
| onPressed: () { | ||
| Navigator.pop(context); | ||
| }, | ||
| ), | ||
| ], | ||
| ), | ||
| ), | ||
| ); | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| import 'package:flutter/cupertino.dart'; | ||
|
|
||
| import '../../../../../core/utills/design/app_colors.dart'; | ||
| import '../../../../../core/utills/design/app_gaps.dart'; | ||
| import '../../../../../core/utills/design/app_typography.dart'; | ||
|
|
||
| class PendingProfileButton extends StatelessWidget { | ||
| final bool enabled; | ||
| final VoidCallback? onPressed; | ||
| final String text; | ||
|
|
||
| const PendingProfileButton({ | ||
| super.key, | ||
| required this.enabled, | ||
| this.onPressed, | ||
| this.text = "작성한 코드프로필 보기", | ||
| }); | ||
|
|
||
| @override | ||
| Widget build(BuildContext context) { | ||
| return Padding( | ||
| padding: const EdgeInsets.all(AppGaps.gap24), | ||
| child: GestureDetector( | ||
| onTap: enabled ? onPressed : null, | ||
| child: Container( | ||
| height: 54, | ||
| width: double.infinity, | ||
| padding: EdgeInsets.symmetric(vertical: 16), | ||
| alignment: Alignment.center, | ||
| decoration: BoxDecoration( | ||
| color: AppColors.white, | ||
| border: Border.all( | ||
| color: enabled ? AppColors.primary : AppColors.grey400, | ||
| ), | ||
| borderRadius: BorderRadius.circular(8), | ||
| ), | ||
| child: Text( | ||
| text, | ||
| style: AppTypography.subtitle2, | ||
| ), | ||
| ), | ||
| ), | ||
| ); | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -328,6 +328,14 @@ packages: | |
| description: flutter | ||
| source: sdk | ||
| version: "0.0.0" | ||
| gif: | ||
| dependency: "direct main" | ||
| description: | ||
| name: gif | ||
| sha256: ade95694f1471da737922806818ffade2814d1d7f8d10af38ebcf36ace012bc0 | ||
| url: "https://pub.dev" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. pub 맥주인가요?
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 잭펍입니다~
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ |
||
| source: hosted | ||
| version: "2.3.0" | ||
| glob: | ||
| dependency: transitive | ||
| description: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
홈 화면은 계속 바뀌네요ㅋㅋㅋㅋ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
죄송합니다 사죄드립니다,,