|
|
|
|
@ -76,38 +76,25 @@ class ProviderAppRoutes {
|
|
|
|
|
static final Map<String, WidgetBuilder> routes = {
|
|
|
|
|
//Home page
|
|
|
|
|
AppRoutes.dashboard: (context) => const DashboardPage(),
|
|
|
|
|
AppRoutes.adsDetailView: (context) => AdsDetailView(
|
|
|
|
|
adDetails:
|
|
|
|
|
ModalRoute.of(context)!.settings.arguments as AdDetailsModel),
|
|
|
|
|
AppRoutes.adsDetailView: (context) => AdsDetailView(adDetails: ModalRoute.of(context)!.settings.arguments as AdDetailsModel),
|
|
|
|
|
AppRoutes.createAdView: (context) => const CreateAdView(),
|
|
|
|
|
|
|
|
|
|
//setting
|
|
|
|
|
// defineLicense: (context) => DefineLicensePage(),
|
|
|
|
|
// defineLicense: (context) => DefineLicensePage(),
|
|
|
|
|
dealershipSetting: (context) => DealershipPage(),
|
|
|
|
|
// branchList: (context) => BranchListPage(),
|
|
|
|
|
defineBranch: (context) => DefineBranchPage(
|
|
|
|
|
(ModalRoute.of(context)!.settings.arguments) == null
|
|
|
|
|
? null
|
|
|
|
|
: (ModalRoute.of(context)!.settings.arguments
|
|
|
|
|
as BranchDetailModel)),
|
|
|
|
|
branchDetail: (context) => BranchDetailPage(
|
|
|
|
|
ModalRoute.of(context)!.settings.arguments as BranchDetailModel),
|
|
|
|
|
defineBranch: (context) => DefineBranchPage((ModalRoute.of(context)!.settings.arguments) == null ? null : (ModalRoute.of(context)!.settings.arguments as BranchDetailModel)),
|
|
|
|
|
branchDetail: (context) => BranchDetailPage(ModalRoute.of(context)!.settings.arguments as BranchDetailModel),
|
|
|
|
|
|
|
|
|
|
//Appointments
|
|
|
|
|
appointment: (context) => AppointmentPage(
|
|
|
|
|
branch:
|
|
|
|
|
ModalRoute.of(context)!.settings.arguments as BranchDetailModel),
|
|
|
|
|
appointmentDetailList: (context) => AppointmentDetailListPage(),
|
|
|
|
|
appointment: (context) => AppointmentPage(branch: ModalRoute.of(context)!.settings.arguments as BranchDetailModel),
|
|
|
|
|
appointmentDetailList: (context) => const AppointmentDetailListPage(),
|
|
|
|
|
updateAppointmentPage: (context) => UpdateAppointmentPage(),
|
|
|
|
|
addServiceInAppointment: (context) => AddNewServiceAppointmentPage(
|
|
|
|
|
ModalRoute.of(context)!.settings.arguments as AppointmentListModel),
|
|
|
|
|
addServiceInAppointment: (context) => AddNewServiceAppointmentPage(ModalRoute.of(context)!.settings.arguments as AppointmentListModel),
|
|
|
|
|
mergeAppointments: (context) => MergeAppointmentListPage(),
|
|
|
|
|
|
|
|
|
|
//Requests
|
|
|
|
|
AppRoutes.requestsDetailPage: (context) => RequestDetailPage(
|
|
|
|
|
requestDetailPageArguments: ModalRoute.of(context)!.settings.arguments
|
|
|
|
|
as RequestDetailPageArguments,
|
|
|
|
|
),
|
|
|
|
|
AppRoutes.requestsDetailPage: (context) => RequestDetailPage(requestDetailPageArguments: ModalRoute.of(context)!.settings.arguments as RequestDetailPageArguments),
|
|
|
|
|
AppRoutes.sendOfferPage: (context) => const SendOfferPage(),
|
|
|
|
|
|
|
|
|
|
//Subscriptions
|
|
|
|
|
@ -116,40 +103,24 @@ class ProviderAppRoutes {
|
|
|
|
|
AppRoutes.paymentMethodsView: (context) => PaymentMethodsView(paymentType: ModalRoute.of(context)!.settings.arguments as PaymentTypes),
|
|
|
|
|
|
|
|
|
|
//Services
|
|
|
|
|
dealerUser: (context) =>
|
|
|
|
|
DealerUserPage(ModalRoute.of(context)!.settings.arguments as String),
|
|
|
|
|
dealerUser: (context) => DealerUserPage(ModalRoute.of(context)!.settings.arguments as String),
|
|
|
|
|
servicesList: (context) => const ServicesListPage(),
|
|
|
|
|
itemsList: (context) => ItemsListPage(),
|
|
|
|
|
createItem: (context) => const CreateItemPage(),
|
|
|
|
|
//createServices: (context) => CreateServicesPage((ModalRoute.of(context)!.settings.arguments) == null ? null : (ModalRoute.of(context)!.settings.arguments as ServiceProviderBranch)),
|
|
|
|
|
//createServices2: (context) => CreateServicesPage2((ModalRoute.of(context)!.settings.arguments) == null ? null : (ModalRoute.of(context)!.settings.arguments as ServiceProviderBranch)),
|
|
|
|
|
createServices3: (context) => CreateServicesPage3(
|
|
|
|
|
(ModalRoute.of(context)!.settings.arguments) == null
|
|
|
|
|
? null
|
|
|
|
|
: (ModalRoute.of(context)!.settings.arguments
|
|
|
|
|
as CreateBranchModel)),
|
|
|
|
|
createServices3: (context) => CreateServicesPage3((ModalRoute.of(context)!.settings.arguments) == null ? null : (ModalRoute.of(context)!.settings.arguments as CreateBranchModel)),
|
|
|
|
|
|
|
|
|
|
//Schedules
|
|
|
|
|
schedulesList: (context) => SchedulesListPage(
|
|
|
|
|
(ModalRoute.of(context)!.settings.arguments) == null
|
|
|
|
|
? null
|
|
|
|
|
: (ModalRoute.of(context)!.settings.arguments as String)),
|
|
|
|
|
schedulesList: (context) => SchedulesListPage((ModalRoute.of(context)!.settings.arguments) == null ? null : (ModalRoute.of(context)!.settings.arguments as String)),
|
|
|
|
|
addSchedule: (context) => AddSchedulesPage(),
|
|
|
|
|
|
|
|
|
|
//Branch Duplication
|
|
|
|
|
matchServices: (context) => MatchedServicesPage(
|
|
|
|
|
(ModalRoute.of(context)!.settings.arguments) == null
|
|
|
|
|
? null
|
|
|
|
|
: (ModalRoute.of(context)!.settings.arguments
|
|
|
|
|
as MatchServicesArguments)),
|
|
|
|
|
matchServices: (context) => MatchedServicesPage((ModalRoute.of(context)!.settings.arguments) == null ? null : (ModalRoute.of(context)!.settings.arguments as MatchServicesArguments)),
|
|
|
|
|
|
|
|
|
|
AppRoutes.chatView: (context) => ChatView(
|
|
|
|
|
chatViewArguments:
|
|
|
|
|
ModalRoute.of(context)!.settings.arguments as ChatViewArguments,
|
|
|
|
|
),
|
|
|
|
|
AppRoutes.chatView: (context) => ChatView(chatViewArguments: ModalRoute.of(context)!.settings.arguments as ChatViewArguments),
|
|
|
|
|
|
|
|
|
|
//ADS:
|
|
|
|
|
AppRoutes.selectAdTypeView: (context) => SelectAdTypeView(
|
|
|
|
|
isProvider: ModalRoute.of(context)!.settings.arguments as bool),
|
|
|
|
|
AppRoutes.selectAdTypeView: (context) => SelectAdTypeView(isProvider: ModalRoute.of(context)!.settings.arguments as bool),
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|