Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/icons/paper_tray.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:code_l/auth/presentation/pages/login/login_page.dart';
import 'package:code_l/auth/presentation/pages/terms_and_conditions/terms_and_condition_page.dart';
import 'package:code_l/sign_up/presentation/pages/pending_approval/pending_approval_page.dart';
import 'package:code_l/sign_up/presentation/pages/profile_interest/profile_intereset_page.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
Expand Down Expand Up @@ -27,7 +28,7 @@ class MyApp extends StatelessWidget {
Widget build(BuildContext context) {
return MaterialApp(
title: 'Kakao Login Demo',
home: const LoginPage(),
home: const PendingApprovalPage(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

홈 화면은 계속 바뀌네요ㅋㅋㅋㅋ

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

죄송합니다 사죄드립니다,,

theme: ThemeData(
primarySwatch: Colors.blue,
scaffoldBackgroundColor: Colors.white,
Expand Down
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(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

정말 안전한 영역인가요?

Copy link
Collaborator

Choose a reason for hiding this comment

The 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,),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

만약 사용자가 안기다리면 어떡하죠?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

기다리세요 조호연님

Copy link
Collaborator Author

Choose a reason for hiding this comment

The 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,
),
),
),
);
}
}
8 changes: 8 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pub 맥주인가요?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

잭펍입니다~

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ

source: hosted
version: "2.3.0"
glob:
dependency: transitive
description:
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ dependencies:
screen_protector: ^1.4.2+1
sign_in_with_apple: ^7.0.1
image_picker: ^1.1.2
gif: ^2.3.0

dev_dependencies:
flutter_test:
Expand Down