@@ -17,7 +17,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
17
17
final TextEditingController _latitudeController = TextEditingController ();
18
18
final TextEditingController _longitudeController = TextEditingController ();
19
19
String _output = '' ;
20
- final GeocodingDarwin _geocodingIOS = GeocodingDarwin ();
20
+ final GeocodingDarwin _geocodingDarwin = GeocodingDarwin ();
21
21
22
22
@override
23
23
void initState () {
@@ -78,7 +78,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
78
78
final latitude = double .parse (_latitudeController.text);
79
79
final longitude = double .parse (_longitudeController.text);
80
80
81
- _geocodingIOS
81
+ _geocodingDarwin
82
82
.placemarkFromCoordinates (latitude, longitude)
83
83
.then ((placemarks) {
84
84
var output = 'No results found.' ;
@@ -111,7 +111,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
111
111
child: ElevatedButton (
112
112
child: const Text ('Look up location' ),
113
113
onPressed: () {
114
- _geocodingIOS
114
+ _geocodingDarwin
115
115
.locationFromAddress (_addressController.text)
116
116
.then ((locations) {
117
117
var output = 'No results found.' ;
@@ -132,7 +132,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
132
132
child: ElevatedButton (
133
133
child: const Text ('Is present' ),
134
134
onPressed: () {
135
- _geocodingIOS .isPresent ().then ((isPresent) {
135
+ _geocodingDarwin .isPresent ().then ((isPresent) {
136
136
var output = isPresent
137
137
? "Geocoder is present"
138
138
: "Geocoder is not present" ;
@@ -148,7 +148,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
148
148
child: ElevatedButton (
149
149
child: const Text ('Set locale en_US' ),
150
150
onPressed: () {
151
- _geocodingIOS .setLocaleIdentifier ("en_US" ).then ((_) {
151
+ _geocodingDarwin .setLocaleIdentifier ("en_US" ).then ((_) {
152
152
setState (() {});
153
153
});
154
154
})),
@@ -159,7 +159,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
159
159
child: ElevatedButton (
160
160
child: const Text ('Set locale nl_NL' ),
161
161
onPressed: () {
162
- _geocodingIOS .setLocaleIdentifier ("nl_NL" ).then ((_) {
162
+ _geocodingDarwin .setLocaleIdentifier ("nl_NL" ).then ((_) {
163
163
setState (() {});
164
164
});
165
165
})),
0 commit comments