mimic google behavior with location icon button
This commit is contained in:
8
lib/extensions/positionLatLngExtension.dart
Normal file
8
lib/extensions/positionLatLngExtension.dart
Normal file
@@ -0,0 +1,8 @@
|
||||
import 'package:geolocator/geolocator.dart';
|
||||
import 'package:latlong2/latlong.dart';
|
||||
|
||||
extension LatLngPositionExtension on Position {
|
||||
LatLng latlng() {
|
||||
return LatLng(latitude, longitude);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user