Skip to content

Commit

Permalink
Merge branch 'master' into av-web
Browse files Browse the repository at this point in the history
* master:
  Updated location package and code to cope with a breaking change. (flutter-mapbox-gl#239)
  • Loading branch information
andrea689 committed Apr 2, 2020
2 parents 5883c13 + e352b22 commit c7e364e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MapsDemo extends StatelessWidget {
if (!kIsWeb) {
final location = Location();
final hasPermissions = await location.hasPermission();
if (!hasPermissions) {
if (hasPermissions != PermissionStatus.GRANTED) {
await location.requestPermission();
}
}
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
location: ^2.3.5
location: ^2.5.3

dev_dependencies:
flutter_test:
Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ packages:
name: mapbox_gl_dart
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.3"
version: "0.1.4"
mapbox_gl_platform_interface:
dependency: "direct main"
description:
Expand Down Expand Up @@ -73,5 +73,5 @@ packages:
source: hosted
version: "2.0.8"
sdks:
dart: ">=2.7.0-dev <3.0.0"
dart: ">=2.7.0 <3.0.0"
flutter: ">=1.12.13+hotfix.4 <2.0.0"

0 comments on commit c7e364e

Please sign in to comment.