|
|
@ -48,6 +48,8 @@ class _SignInState extends State<SignIn> {
|
|
|
|
String state = '';
|
|
|
|
String state = '';
|
|
|
|
String zip = '';
|
|
|
|
String zip = '';
|
|
|
|
String country = '';
|
|
|
|
String country = '';
|
|
|
|
|
|
|
|
double lat = 0;
|
|
|
|
|
|
|
|
double lng = 0;
|
|
|
|
|
|
|
|
|
|
|
|
PickResult? selectedPlace;
|
|
|
|
PickResult? selectedPlace;
|
|
|
|
|
|
|
|
|
|
|
@ -324,6 +326,8 @@ class _SignInState extends State<SignIn> {
|
|
|
|
onPlacePicked: (PickResult result) {
|
|
|
|
onPlacePicked: (PickResult result) {
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
|
selectedPlace = result;
|
|
|
|
selectedPlace = result;
|
|
|
|
|
|
|
|
lat=selectedPlace!.geometry!.location.lat;
|
|
|
|
|
|
|
|
lng=selectedPlace!.geometry!.location.lng;
|
|
|
|
if(selectedPlace!.types!.length==1){
|
|
|
|
if(selectedPlace!.types!.length==1){
|
|
|
|
userAddressCapturingController.text =
|
|
|
|
userAddressCapturingController.text =
|
|
|
|
selectedPlace!.formattedAddress!;
|
|
|
|
selectedPlace!.formattedAddress!;
|
|
|
@ -506,7 +510,8 @@ class _SignInState extends State<SignIn> {
|
|
|
|
payload["zip"] = zip;
|
|
|
|
payload["zip"] = zip;
|
|
|
|
payload["country"] = country;
|
|
|
|
payload["country"] = country;
|
|
|
|
payload["notes"] = '';
|
|
|
|
payload["notes"] = '';
|
|
|
|
|
|
|
|
payload["latitude"] = lat.toString();
|
|
|
|
|
|
|
|
payload["longitude"] = lng.toString();
|
|
|
|
bool signUpStatus = await AppSettings.signUp(payload);
|
|
|
|
bool signUpStatus = await AppSettings.signUp(payload);
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|