Skip to content

Commit 5b94e80

Browse files
committed
refactor: fine tuning
1 parent 79eb7cb commit 5b94e80

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

geocoding_darwin/darwin/Classes/GeocodingPlugin.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Created by Maurits van Beusekom on 07/06/2020.
66
//
77

8-
#import "Extensions/CLPlacemarkExtensions.h"
8+
#import "CLPlacemarkExtensions.h"
99
#import "GeocodingHandler.h"
1010
#import "GeocodingPlugin.h"
1111

geocoding_darwin/example/lib/plugin_example/geocode_page.dart

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
1414
final TextEditingController _latitudeController = TextEditingController();
1515
final TextEditingController _longitudeController = TextEditingController();
1616
String _output = '';
17-
GeocodingDarwin _geocodingIOS = GeocodingDarwin();
17+
GeocodingDarwin _geocodingDarwin = GeocodingDarwin();
1818

1919
@override
2020
void initState() {
@@ -75,7 +75,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
7575
final latitude = double.parse(_latitudeController.text);
7676
final longitude = double.parse(_longitudeController.text);
7777

78-
_geocodingIOS
78+
_geocodingDarwin
7979
.placemarkFromCoordinates(latitude, longitude)
8080
.then((placemarks) {
8181
var output = 'No results found.';
@@ -108,7 +108,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
108108
child: ElevatedButton(
109109
child: Text('Look up location'),
110110
onPressed: () {
111-
_geocodingIOS
111+
_geocodingDarwin
112112
.locationFromAddress(_addressController.text)
113113
.then((locations) {
114114
var output = 'No results found.';
@@ -129,7 +129,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
129129
child: ElevatedButton(
130130
child: Text('Is present'),
131131
onPressed: () {
132-
_geocodingIOS.isPresent().then((isPresent) {
132+
_geocodingDarwin.isPresent().then((isPresent) {
133133
var output = isPresent
134134
? "Geocoder is present"
135135
: "Geocoder is not present";
@@ -145,7 +145,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
145145
child: ElevatedButton(
146146
child: Text('Set locale en_US'),
147147
onPressed: () {
148-
_geocodingIOS.setLocaleIdentifier("en_US").then((_) {
148+
_geocodingDarwin.setLocaleIdentifier("en_US").then((_) {
149149
setState(() {});
150150
});
151151
})),
@@ -156,7 +156,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
156156
child: ElevatedButton(
157157
child: Text('Set locale nl_NL'),
158158
onPressed: () {
159-
_geocodingIOS.setLocaleIdentifier("nl_NL").then((_) {
159+
_geocodingDarwin.setLocaleIdentifier("nl_NL").then((_) {
160160
setState(() {});
161161
});
162162
})),

0 commit comments

Comments
 (0)