INFRA: Set Up Project.

This commit is contained in:
2025-11-28 11:10:49 +05:00
commit c798279f7d
609 changed files with 77436 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
import 'package:customer/constant/constant.dart';
import 'package:customer/screen_ui/multi_vendor_service/profile_screen/profile_screen.dart';
import 'package:customer/screen_ui/multi_vendor_service/wallet_screen/wallet_screen.dart';
import 'package:customer/screen_ui/on_demand_service/favourite_ondemand_screen.dart';
import 'package:customer/service/fire_store_utils.dart';
import 'package:get/get.dart';
import '../screen_ui/on_demand_service/my_booking_on_demand_screen.dart';
import '../screen_ui/on_demand_service/on_demand_home_screen.dart';
class OnDemandDashboardController extends GetxController {
RxInt selectedIndex = 0.obs;
RxList pageList = [].obs;
@override
void onInit() {
getTaxList();
if (Constant.walletSetting == false) {
pageList.value = [OnDemandHomeScreen(), FavouriteOndemandScreen(), const MyBookingOnDemandScreen(), const ProfileScreen()];
} else {
pageList.value = [
OnDemandHomeScreen(),
FavouriteOndemandScreen(),
const MyBookingOnDemandScreen(),
const WalletScreen(),
const ProfileScreen(),
];
}
super.onInit();
}
Future<void> getTaxList() async {
await FireStoreUtils.getTaxList(Constant.sectionConstantModel!.id).then((value) {
if (value != null) {
Constant.taxList = value;
}
});
}
}