Skip to content

Commit 6726c1a

Browse files
committed
refactor: fine tuning
1 parent 8a2f4fb commit 6726c1a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

geocoding_darwin/darwin/Classes/GeocodingPlugin.m

Lines changed: 1 addition & 1 deletion
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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
1717
final TextEditingController _latitudeController = TextEditingController();
1818
final TextEditingController _longitudeController = TextEditingController();
1919
String _output = '';
20-
final GeocodingDarwin _geocodingIOS = GeocodingDarwin();
20+
final GeocodingDarwin _geocodingDarwin = GeocodingDarwin();
2121

2222
@override
2323
void initState() {
@@ -78,7 +78,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
7878
final latitude = double.parse(_latitudeController.text);
7979
final longitude = double.parse(_longitudeController.text);
8080

81-
_geocodingIOS
81+
_geocodingDarwin
8282
.placemarkFromCoordinates(latitude, longitude)
8383
.then((placemarks) {
8484
var output = 'No results found.';
@@ -111,7 +111,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
111111
child: ElevatedButton(
112112
child: const Text('Look up location'),
113113
onPressed: () {
114-
_geocodingIOS
114+
_geocodingDarwin
115115
.locationFromAddress(_addressController.text)
116116
.then((locations) {
117117
var output = 'No results found.';
@@ -132,7 +132,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
132132
child: ElevatedButton(
133133
child: const Text('Is present'),
134134
onPressed: () {
135-
_geocodingIOS.isPresent().then((isPresent) {
135+
_geocodingDarwin.isPresent().then((isPresent) {
136136
var output = isPresent
137137
? "Geocoder is present"
138138
: "Geocoder is not present";
@@ -148,7 +148,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
148148
child: ElevatedButton(
149149
child: const Text('Set locale en_US'),
150150
onPressed: () {
151-
_geocodingIOS.setLocaleIdentifier("en_US").then((_) {
151+
_geocodingDarwin.setLocaleIdentifier("en_US").then((_) {
152152
setState(() {});
153153
});
154154
})),
@@ -159,7 +159,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
159159
child: ElevatedButton(
160160
child: const Text('Set locale nl_NL'),
161161
onPressed: () {
162-
_geocodingIOS.setLocaleIdentifier("nl_NL").then((_) {
162+
_geocodingDarwin.setLocaleIdentifier("nl_NL").then((_) {
163163
setState(() {});
164164
});
165165
})),

0 commit comments

Comments
 (0)