|
|
|
|
@ -33,25 +33,21 @@ class _CompleteProfilePageState extends State<CompleteProfilePage> {
|
|
|
|
|
confirmPassword = "";
|
|
|
|
|
late String password = "";
|
|
|
|
|
bool isChecked = false;
|
|
|
|
|
late UserVM userVM;
|
|
|
|
|
DropValue? city;
|
|
|
|
|
DropValue? gender;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
void initState() {
|
|
|
|
|
userVM = Provider.of<UserVM>(context, listen: false);
|
|
|
|
|
getcities();
|
|
|
|
|
|
|
|
|
|
super.initState();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getcities() async {
|
|
|
|
|
print("Country ID = " + AppState().getUserRegisterCountrySelection.id.toString());
|
|
|
|
|
await userVM.getAllCitiesForUser(AppState().getUserRegisterCountrySelection.id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Consumer(builder: (BuildContext context, UserVM userVM, Widget? child) {
|
|
|
|
|
print("Country ID = " + AppState().getUserRegisterCountrySelection.id.toString());
|
|
|
|
|
userVM.getAllCitiesForUser(AppState().getUserRegisterCountrySelection.id);
|
|
|
|
|
return Scaffold(
|
|
|
|
|
appBar: CustomAppBar(
|
|
|
|
|
isRemoveBackButton: widget.user.data!.roleId == 7 ? false : true,
|
|
|
|
|
@ -271,4 +267,6 @@ class _CompleteProfilePageState extends State<CompleteProfilePage> {
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|