@@ -14,7 +14,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
14
14
final TextEditingController _latitudeController = TextEditingController ();
15
15
final TextEditingController _longitudeController = TextEditingController ();
16
16
String _output = '' ;
17
- GeocodingDarwin _geocodingIOS = GeocodingDarwin ();
17
+ GeocodingDarwin _geocodingDarwin = GeocodingDarwin ();
18
18
19
19
@override
20
20
void initState () {
@@ -75,7 +75,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
75
75
final latitude = double .parse (_latitudeController.text);
76
76
final longitude = double .parse (_longitudeController.text);
77
77
78
- _geocodingIOS
78
+ _geocodingDarwin
79
79
.placemarkFromCoordinates (latitude, longitude)
80
80
.then ((placemarks) {
81
81
var output = 'No results found.' ;
@@ -108,7 +108,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
108
108
child: ElevatedButton (
109
109
child: Text ('Look up location' ),
110
110
onPressed: () {
111
- _geocodingIOS
111
+ _geocodingDarwin
112
112
.locationFromAddress (_addressController.text)
113
113
.then ((locations) {
114
114
var output = 'No results found.' ;
@@ -129,7 +129,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
129
129
child: ElevatedButton (
130
130
child: Text ('Is present' ),
131
131
onPressed: () {
132
- _geocodingIOS .isPresent ().then ((isPresent) {
132
+ _geocodingDarwin .isPresent ().then ((isPresent) {
133
133
var output = isPresent
134
134
? "Geocoder is present"
135
135
: "Geocoder is not present" ;
@@ -145,7 +145,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
145
145
child: ElevatedButton (
146
146
child: Text ('Set locale en_US' ),
147
147
onPressed: () {
148
- _geocodingIOS .setLocaleIdentifier ("en_US" ).then ((_) {
148
+ _geocodingDarwin .setLocaleIdentifier ("en_US" ).then ((_) {
149
149
setState (() {});
150
150
});
151
151
})),
@@ -156,7 +156,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
156
156
child: ElevatedButton (
157
157
child: Text ('Set locale nl_NL' ),
158
158
onPressed: () {
159
- _geocodingIOS .setLocaleIdentifier ("nl_NL" ).then ((_) {
159
+ _geocodingDarwin .setLocaleIdentifier ("nl_NL" ).then ((_) {
160
160
setState (() {});
161
161
});
162
162
})),
0 commit comments