Skip to content
This repository has been archived by the owner on Jun 25, 2019. It is now read-only.

NoSuchMethodError #57

Open
nitneuq33000 opened this issue Jun 8, 2018 · 0 comments
Open

NoSuchMethodError #57

nitneuq33000 opened this issue Jun 8, 2018 · 0 comments

Comments

@nitneuq33000
Copy link

nitneuq33000 commented Jun 8, 2018

Currently I launch the map when I receive sms with coordinate, for this ,

1/ I send sms
2/ I read the reply
3/ I extract coordinate (lat long)
4/ I save value with shared preference
5/ after save I launch mapview with the lat and long coordinate

after update flutter I have this error bellow, only when I erase icone app and release a new app. If I just hot reload I havn't this error and map is launch correctly.

@patch
dynamic noSuchMethod(Invocation invocation) {
// TODO(regis): Remove temp constructor identifier 'withInvocation'.
throw new NoSuchMethodError.withInvocation(this, invocation);
}

If I launch showMap(); after Onpressed Button I have no issues.

I have this error when I place showMap here:

_loadgeoValue() async {
SharedPreferences prefs = await SharedPreferences.getInstance();
setState(() {
lat = (prefs.getDouble('lat'));
long = (prefs.getDouble('long'));
});
showMap();
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant