feat: new ui changes
This commit is contained in:
@@ -29,4 +29,14 @@ class RecordsLogic extends GetxController {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Future<void> onRefresh() async {
|
||||
await Future.delayed(const Duration(seconds: 2)).then((value) {
|
||||
currentPage.value = 1;
|
||||
countList.value = Resource<PaginationModel<int>>.success(
|
||||
PaginationModel(results: [1, 2, 3, 4, 5, 6], count: 1, next: null, previous: null),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -16,10 +16,7 @@ class RecordsPage extends GetView<RecordsLogic> {
|
||||
resource: data.value,
|
||||
hasMore: data.value.data?.next != null,
|
||||
isPaginating: controller.isLoadingMore.value,
|
||||
onRefresh: () async {
|
||||
controller.currentPage.value = 1;
|
||||
//await controller.getAllocatedMade();
|
||||
},
|
||||
|
||||
onLoadMore: () async {
|
||||
controller.currentPage.value++;
|
||||
iLog(controller.currentPage.value);
|
||||
|
||||
@@ -16,10 +16,7 @@ class UsersPage extends GetView<UsersLogic> {
|
||||
resource: data.value,
|
||||
hasMore: data.value.data?.next != null,
|
||||
isPaginating: controller.isLoadingMore.value,
|
||||
onRefresh: () async {
|
||||
controller.currentPage.value = 1;
|
||||
//await controller.getAllocatedMade();
|
||||
},
|
||||
|
||||
onLoadMore: () async {
|
||||
controller.currentPage.value++;
|
||||
iLog(controller.currentPage.value);
|
||||
@@ -58,10 +55,7 @@ class UsersPage extends GetView<UsersLogic> {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
spacing: 3,
|
||||
children: [
|
||||
Text(
|
||||
'داود خرم مهری پور',
|
||||
style: AppFonts.yekan12.copyWith(color: AppColor.blueNormal),
|
||||
),
|
||||
Text('داود خرم مهری پور', style: AppFonts.yekan12.copyWith(color: AppColor.blueNormal)),
|
||||
Text(
|
||||
'09302545455',
|
||||
style: AppFonts.yekan10.copyWith(color: AppColor.darkGreyDarkHover),
|
||||
@@ -72,10 +66,7 @@ class UsersPage extends GetView<UsersLogic> {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text('باقی مانده', style: AppFonts.yekan10.copyWith(color: AppColor.blueNormal)),
|
||||
Text(
|
||||
'0 کیلوگرم',
|
||||
style: AppFonts.yekan12.copyWith(color: AppColor.darkGreyDarkHover),
|
||||
),
|
||||
Text('0 کیلوگرم', style: AppFonts.yekan12.copyWith(color: AppColor.darkGreyDarkHover)),
|
||||
],
|
||||
),
|
||||
Assets.vec.scanBarcodeSvg.svg(),
|
||||
@@ -141,7 +132,7 @@ class UsersPage extends GetView<UsersLogic> {
|
||||
),
|
||||
),
|
||||
Visibility(
|
||||
visible:true,
|
||||
visible: true,
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
spacing: 16.w,
|
||||
@@ -152,7 +143,7 @@ class UsersPage extends GetView<UsersLogic> {
|
||||
height: 40.h,
|
||||
|
||||
onPressed: () {
|
||||
/* controller.setEditData(item);
|
||||
/* controller.setEditData(item);
|
||||
Get.bottomSheet(
|
||||
addOrEditBottomSheet(true),
|
||||
isScrollControlled: true,
|
||||
@@ -176,7 +167,7 @@ class UsersPage extends GetView<UsersLogic> {
|
||||
// controller.denyAllocation(item.key ?? '');
|
||||
//await controller.deleteAllocation(item);
|
||||
},
|
||||
onRefresh: () async{}
|
||||
onRefresh: () async {},
|
||||
);
|
||||
},
|
||||
borderColor: AppColor.redNormal,
|
||||
|
||||
Reference in New Issue
Block a user