-
Notifications
You must be signed in to change notification settings - Fork 0
feat: 사업자 정보 추가 #151
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
Merged
Merged
feat: 사업자 정보 추가 #151
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| import 'package:flutter/material.dart'; | ||
| import 'package:gap/gap.dart'; | ||
| import 'package:grimity/app/config/app_color.dart'; | ||
| import 'package:grimity/app/config/app_theme.dart'; | ||
| import 'package:grimity/app/config/app_typeface.dart'; | ||
|
|
||
| class BusinessInfoPage extends StatelessWidget { | ||
| const BusinessInfoPage({super.key}); | ||
|
|
||
| @override | ||
| Widget build(BuildContext context) { | ||
| return Scaffold( | ||
| appBar: AppBar( | ||
| toolbarHeight: AppTheme.kToolbarHeight.height, | ||
| titleSpacing: 0, | ||
| bottom: const PreferredSize( | ||
| preferredSize: Size.fromHeight(1), | ||
| child: Divider(height: 1, color: AppColor.gray300), | ||
| ), | ||
| ), | ||
| body: SafeArea( | ||
| child: ListView( | ||
| padding: const EdgeInsets.all(16.0), | ||
| children: [ | ||
| Text( | ||
| '사업자 정보', | ||
| style: AppTypeface.title2, | ||
| ), | ||
| Gap(24), | ||
| _buildInfoItem('사업자 등록 번호', '408-27-02500'), | ||
| Gap(16), | ||
| _buildInfoItem('법인 여부', '개인'), | ||
| Gap(16), | ||
| _buildInfoItem('상호', '그리미티 (Grimity)'), | ||
| Gap(16), | ||
| _buildInfoItem('대표자명', '임종훈'), | ||
| Gap(16), | ||
| _buildInfoItem('전화번호', '070-8098-7916'), | ||
| Gap(16), | ||
| _buildInfoItem('개업일', '2025-10-11'), | ||
| Gap(16), | ||
| _buildInfoItem('전자우편', '[email protected]'), | ||
| Gap(16), | ||
| _buildInfoItem('사업장소재지(도로명)', '부산광역시 사상구 가야대로255번길 5, 107동 104호'), | ||
| Gap(16), | ||
| _buildInfoItem('인터넷 도메인', 'https://www.grimity.com/'), | ||
| Gap(16), | ||
| ], | ||
| ), | ||
| ), | ||
| ); | ||
| } | ||
|
|
||
| Widget _buildInfoItem(String title, String content) { | ||
| return Column( | ||
| crossAxisAlignment: CrossAxisAlignment.start, | ||
| children: [ | ||
| Text(title, style: AppTypeface.subTitle3), | ||
| Gap(8), | ||
| Text(content, style: AppTypeface.label3), | ||
| ], | ||
| ); | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,88 @@ | ||
| import 'package:flutter/material.dart'; | ||
| import 'package:flutter_riverpod/flutter_riverpod.dart'; | ||
| import 'package:gap/gap.dart'; | ||
| import 'package:grimity/app/config/app_color.dart'; | ||
| import 'package:grimity/app/config/app_const.dart'; | ||
| import 'package:grimity/app/config/app_router.dart'; | ||
| import 'package:grimity/app/config/app_typeface.dart'; | ||
| import 'package:grimity/app/enum/login_provider.enum.dart'; | ||
| import 'package:grimity/gen/assets.gen.dart'; | ||
| import 'package:grimity/presentation/common/provider/user_auth_provider.dart'; | ||
| import 'package:grimity/presentation/common/widget/grimity_gesture.dart'; | ||
| import 'package:grimity/presentation/common/widget/grimity_gray_circle.dart'; | ||
| import 'package:url_launcher/url_launcher.dart'; | ||
|
|
||
| class DrawerFooter extends StatelessWidget { | ||
| const DrawerFooter({super.key}); | ||
|
|
||
| @override | ||
| Widget build(BuildContext context) { | ||
| return Column( | ||
| crossAxisAlignment: CrossAxisAlignment.start, | ||
| children: [ | ||
| _LogoutButton(), | ||
| Gap(12), | ||
| Row( | ||
| children: [ | ||
| GrimityGesture( | ||
| onTap: () async { | ||
| await launchUrl(Uri.parse(AppConst.serviceTermsUrl)); | ||
| }, | ||
| child: Text('이용약관', style: AppTypeface.caption2.copyWith(color: AppColor.gray500)), | ||
| ), | ||
| GrimityGrayCircle(), | ||
| GrimityGesture( | ||
| onTap: () async { | ||
| await launchUrl(Uri.parse(AppConst.privacyPolicyUrl)); | ||
| }, | ||
| child: Text('개인정보취급방침', style: AppTypeface.caption2.copyWith(color: AppColor.gray500)), | ||
| ), | ||
| ], | ||
| ), | ||
| Gap(4), | ||
| GrimityGesture( | ||
| onTap: () async { | ||
| const BusinessInfoRoute().push(context); | ||
| }, | ||
| child: Text('사업자 정보', style: AppTypeface.caption2.copyWith(color: AppColor.gray500)), | ||
| ), | ||
| Gap(4), | ||
| Text( | ||
| '© Grimity. All rights reserved.', | ||
| style: AppTypeface.caption2.copyWith(color: AppColor.gray500), | ||
| ), | ||
| ], | ||
| ); | ||
| } | ||
| } | ||
|
|
||
| class _LogoutButton extends ConsumerWidget { | ||
| @override | ||
| Widget build(BuildContext context, WidgetRef ref) { | ||
| return GestureDetector( | ||
| onTap: () async { | ||
| final user = ref.read(userAuthProvider); | ||
| if (user == null) return; | ||
| final provider = LoginProvider.fromString(user.provider ?? ''); | ||
|
|
||
| await ref.read(userAuthProvider.notifier).logout(provider); | ||
| if (context.mounted) { | ||
| SignInRoute().go(context); | ||
| } | ||
| }, | ||
| child: Row( | ||
| children: [ | ||
| Text( | ||
| '로그아웃', | ||
| style: AppTypeface.caption2.copyWith(color: AppColor.gray500), | ||
| ), | ||
| Gap(4), | ||
| Assets.icons.icon.out.svg( | ||
| width: 16, | ||
| colorFilter: ColorFilter.mode(AppColor.gray500, BlendMode.srcIn), | ||
| ), | ||
| ], | ||
| ), | ||
| ); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.