conflicts for tell us page resolved
This commit is contained in:
@@ -41,17 +41,17 @@ class LoginAPI {
|
||||
if (accountype == "1") {
|
||||
print('tell us individyal');
|
||||
Get.toNamed(RouteName.tellusindividualscreen,
|
||||
arguments: {
|
||||
'pageroute' : "mainscreen"
|
||||
}
|
||||
// arguments: {
|
||||
// 'pageroute' : "mainscreen"
|
||||
// }
|
||||
);
|
||||
} else if (accountype == "2") {
|
||||
print('tell us business');
|
||||
|
||||
Get.toNamed(RouteName.tellusbusinessscreen,
|
||||
arguments: {
|
||||
'pageroute' : "mainscreen"
|
||||
}
|
||||
// arguments: {
|
||||
// 'pageroute' : "mainscreen"
|
||||
// }
|
||||
);
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -46,7 +46,7 @@ class _TellusaboutBusinessState extends State<TellusaboutBusiness> {
|
||||
});
|
||||
}
|
||||
|
||||
String pagename = Get.arguments["pageroute"];
|
||||
// String pagename = Get.arguments["pageroute"];
|
||||
|
||||
String getBusinessTypeId(String selectedBusinessType) {
|
||||
if (selectedBusinessType.contains("Retail")) {
|
||||
@@ -103,12 +103,12 @@ class _TellusaboutBusinessState extends State<TellusaboutBusiness> {
|
||||
snackPosition: SnackPosition.BOTTOM,
|
||||
);
|
||||
|
||||
if (pagename == "nextscreen") {
|
||||
// if (pagename == "nextscreen") {
|
||||
Get.toNamed(RouteName.businessletusunderstandstep1);
|
||||
|
||||
} else if (pagename == "mainscreen") {
|
||||
Get.toNamed(RouteName.mainscreen);
|
||||
}
|
||||
// } else if (pagename == "mainscreen") {
|
||||
// Get.toNamed(RouteName.mainscreen);
|
||||
// }
|
||||
|
||||
} else if (data.status == ResponseStatus.FAILED) {
|
||||
Get.snackbar(
|
||||
|
||||
@@ -36,7 +36,7 @@ class _TellusaboutIndividualState extends State<TellusaboutIndividual> {
|
||||
TextEditingController datecontroller = TextEditingController();
|
||||
TextEditingController locationcontroller = TextEditingController();
|
||||
|
||||
String pagename = Get.arguments["pageroute"];
|
||||
// String pagename = Get.arguments["pageroute"];
|
||||
|
||||
|
||||
DateTime? _selectedDate;
|
||||
@@ -164,12 +164,12 @@ class _TellusaboutIndividualState extends State<TellusaboutIndividual> {
|
||||
utils.showToast("tell us done Successfully!");
|
||||
Get.back();
|
||||
// Get.toNamed(RouteName.individualprofilestep1);
|
||||
if (pagename == "nextscreen") {
|
||||
// if (pagename == "nextscreen") {
|
||||
Get.toNamed(RouteName.individualactivitystep2);
|
||||
|
||||
} else if (pagename == "mainscreen") {
|
||||
Get.toNamed(RouteName.mainscreen);
|
||||
}
|
||||
// } else if (pagename == "mainscreen") {
|
||||
// Get.toNamed(RouteName.mainscreen);
|
||||
// }
|
||||
} else {
|
||||
Get.back();
|
||||
return utils.showToast(data.message);
|
||||
|
||||
@@ -55,16 +55,16 @@ class _VerifyuserScreenStateState extends State<VerifyuserScreenState> {
|
||||
if (accounttype == 'Individual') {
|
||||
print('individual selected');
|
||||
Get.toNamed(RouteName.tellusindividualscreen,
|
||||
arguments: {
|
||||
'pageroute' : "nextscreen"
|
||||
}
|
||||
// arguments: {
|
||||
// 'pageroute' : "nextscreen"
|
||||
// }
|
||||
);
|
||||
} else if (accounttype == 'Business') {
|
||||
print('business selected');
|
||||
Get.toNamed(RouteName.tellusbusinessscreen,
|
||||
arguments: {
|
||||
'pageroute' : "nextscreen"
|
||||
}
|
||||
// arguments: {
|
||||
// 'pageroute' : "nextscreen"
|
||||
// }
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -100,10 +100,12 @@ class _SplashScreenState extends State<SplashScreen> {
|
||||
|
||||
if (accountype == "1") {
|
||||
Get.toNamed(RouteName.tellusindividualscreen,
|
||||
arguments: {'pageroute': "mainscreen"});
|
||||
// arguments: {'pageroute': "mainscreen"}
|
||||
);
|
||||
} else if (accountype == "2") {
|
||||
Get.toNamed(RouteName.tellusbusinessscreen,
|
||||
arguments: {'pageroute': "mainscreen"});
|
||||
// arguments: {'pageroute': "mainscreen"}
|
||||
);
|
||||
}
|
||||
} else {
|
||||
Get.toNamed(RouteName.mainscreen);
|
||||
@@ -157,10 +159,12 @@ class _SplashScreenState extends State<SplashScreen> {
|
||||
|
||||
if (accountype == "1") {
|
||||
Get.toNamed(RouteName.tellusindividualscreen,
|
||||
arguments: {'pageroute': "mainscreen"});
|
||||
// arguments: {'pageroute': "mainscreen"}
|
||||
);
|
||||
} else if (accountype == "2") {
|
||||
Get.toNamed(RouteName.tellusbusinessscreen,
|
||||
arguments: {'pageroute': "mainscreen"});
|
||||
// arguments: {'pageroute': "mainscreen"}
|
||||
);
|
||||
}
|
||||
} else {
|
||||
Get.toNamed(RouteName.mainscreen);
|
||||
|
||||
Reference in New Issue
Block a user