-
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.
fix: #35 future 반환타입 고려 및 api 호출 조건문 수정, 현재 페이지 변수 통일
- Loading branch information
kimwest00
committed
Oct 17, 2023
1 parent
180baf5
commit e1db0d3
Showing
6 changed files
with
58 additions
and
53 deletions.
There are no files selected for viewing
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,9 +1,9 @@ | ||
///* Pagination 처리에 사용되는 변수 data class | ||
class Pagination { | ||
bool isLast; | ||
int totalPage; | ||
int totalCnt; | ||
int currentpage; | ||
|
||
Pagination( | ||
{required this.isLast, required this.totalPage, this.currentpage = 0}); | ||
{required this.isLast, required this.totalCnt, this.currentpage = 0}); | ||
} |
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 |
---|---|---|
@@ -1,35 +1,35 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_screenutil/flutter_screenutil.dart'; | ||
import 'package:get/get.dart'; | ||
import 'package:match/modules/home/controller/home_controller.dart'; | ||
import 'package:match/util/components/global_app_bar.dart'; | ||
import '../../../model/today_project/today_project.dart'; | ||
import '../../donate/widget/donate_widget.dart'; | ||
|
||
///<h2>오늘의 후원 화면</h2> | ||
///[HomeController]에서 [TodayProject]를 받아와서 화면에 뿌려준다.</br></br> | ||
///[HomeController]에서 [HomeSceen]이 그려질때 해당 데이터를 가져오기때문에 | ||
/// 같은 Controller및 Binding 사용 | ||
class TodayMatchScreen extends GetView<HomeController> { | ||
const TodayMatchScreen({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: CommonAppBar.basic("오늘의 후원"), | ||
body: Padding( | ||
padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 7.h), | ||
child: Obx( | ||
() => ListView.separated( | ||
separatorBuilder: (context, index) => SizedBox(height: 14.h), | ||
itemCount: controller.projectList.length, | ||
itemBuilder: (context, index) { | ||
final project = controller.projectList[index]; | ||
return ProjectWidget(project: project); | ||
}, | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} | ||
// import 'package:flutter/material.dart'; | ||
// import 'package:flutter_screenutil/flutter_screenutil.dart'; | ||
// import 'package:get/get.dart'; | ||
// import 'package:match/modules/home/controller/home_controller.dart'; | ||
// import 'package:match/util/components/global_app_bar.dart'; | ||
// import '../../../model/today_project/today_project.dart'; | ||
// import '../../donate/widget/donate_widget.dart'; | ||
// | ||
// ///<h2>오늘의 후원 화면</h2> | ||
// ///[HomeController]에서 [TodayProject]를 받아와서 화면에 뿌려준다.</br></br> | ||
// ///[HomeController]에서 [HomeSceen]이 그려질때 해당 데이터를 가져오기때문에 | ||
// /// 같은 Controller및 Binding 사용 | ||
// class TodayMatchScreen extends GetView<HomeController> { | ||
// const TodayMatchScreen({super.key}); | ||
// | ||
// @override | ||
// Widget build(BuildContext context) { | ||
// return Scaffold( | ||
// appBar: CommonAppBar.basic("오늘의 후원"), | ||
// body: Padding( | ||
// padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 7.h), | ||
// child: Obx( | ||
// () => ListView.separated( | ||
// separatorBuilder: (context, index) => SizedBox(height: 14.h), | ||
// itemCount: controller.projectList.length, | ||
// itemBuilder: (context, index) { | ||
// final project = controller.projectList[index]; | ||
// return ProjectWidget(project: project); | ||
// }, | ||
// ), | ||
// ), | ||
// ), | ||
// ); | ||
// } | ||
// } |
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