-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:#17 global button add + 불타는 매치 결제내역 페이지 작성 완료
- Loading branch information
kimwest00
committed
Sep 26, 2023
1 parent
c843cda
commit c296c7b
Showing
6 changed files
with
101 additions
and
26 deletions.
There are no files selected for viewing
15 changes: 4 additions & 11 deletions
15
lib/modules/buring_match/view/burning_match_detail_view.dart
This file contains 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 |
---|---|---|
@@ -1,19 +1,12 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:get/get.dart'; | ||
import 'package:match/util/components/global_app_bar.dart'; | ||
import 'package:match/modules/buring_match/controller/burning_match_controller.dart'; | ||
|
||
import '../controller/burning_match_controller.dart'; | ||
|
||
class BurningMatchTotalScreen extends GetView<BurningMatchController> { | ||
const BurningMatchTotalScreen({super.key}); | ||
class BurningMatchPayDetailScreen extends GetView<BurningMatchController> { | ||
const BurningMatchPayDetailScreen({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: CommonAppBar.basic("진행중인 매치"), | ||
body: ListView( | ||
children: [], | ||
), | ||
); | ||
return const Placeholder(); | ||
} | ||
} |
This file contains 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,40 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_screenutil/flutter_screenutil.dart'; | ||
import 'package:get/get.dart'; | ||
import 'package:match/util/components/global_app_bar.dart'; | ||
|
||
import '../../../util/const/style/global_color.dart'; | ||
import '../controller/burning_match_controller.dart'; | ||
import '../widget/burning_match_widget.dart'; | ||
|
||
class BurningMatchPayScreen extends GetView<BurningMatchController> { | ||
const BurningMatchPayScreen({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: CommonAppBar.basic("진행중인 매치"), | ||
body: ListView.separated( | ||
itemBuilder: ((context, index) { | ||
return Padding( | ||
padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 30.h), | ||
child: BurningMatchCredit( | ||
title: "불타는 매치", | ||
date: "2021.09.01", | ||
type: "불타는 매치", | ||
day: 30, | ||
price: 10000, | ||
), | ||
); | ||
}), | ||
separatorBuilder: ((context, index) { | ||
return Container( | ||
margin: | ||
EdgeInsets.symmetric(vertical: 29.h).copyWith(bottom: 0.h), | ||
color: AppColors.searchBackground, | ||
height: 10.h, | ||
); | ||
}), | ||
itemCount: 3)); | ||
} | ||
} |
12 changes: 0 additions & 12 deletions
12
lib/modules/buring_match/view/burning_match_total_view.dart
This file was deleted.
Oops, something went wrong.
This file contains 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 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 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,26 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_screenutil/flutter_screenutil.dart'; | ||
import 'package:match/util/const/style/global_color.dart'; | ||
|
||
import '../const/style/global_text_styles.dart'; | ||
|
||
class CommonButton extends StatelessWidget { | ||
final Future<void> Function() onTap; | ||
final String text; | ||
const CommonButton({super.key, required this.onTap, required this.text}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return GestureDetector( | ||
onTap: onTap, | ||
child: Container( | ||
padding: EdgeInsets.symmetric(vertical: 17.h), | ||
alignment: Alignment.center, | ||
decoration: BoxDecoration( | ||
color: AppColors.white, | ||
border: Border.all(color: AppColors.grey1), | ||
borderRadius: BorderRadius.circular(10.r)), | ||
child: Text(text, style: AppTextStyles.subtitle2Bold14), | ||
)); | ||
} | ||
} |