second commit

This commit is contained in:
Anbarasu
2026-05-27 10:35:09 +05:30
parent c53794c04c
commit 1435ac47b0
501 changed files with 52818 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
import 'package:get/get.dart';
import '../../../Data/Repository/Orders/Orderrepository.dart';
import '../../../Model/Response/Orders/Getorderresponse.dart';
class OnGoingOrderController extends GetxController{
RxBool shimmer = true.obs;
List <OrderDetails> getCurrentOrderList = [];
OrdersRepository ordersRepository = OrdersRepository();
getCurrentOrder()async{
GetOrders? result = await ordersRepository.getCurrentOrders();
getCurrentOrderList = result?.details??[];
shimmer.value = false;
update();
}
@override
void onInit() {
getCurrentOrder();
// TODO: implement onInit
super.onInit();
}
}