Skip to content

Commit

Permalink
Updated location package and code to cope with a breaking change. (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothySealy authored Apr 2, 2020
1 parent 16439ed commit e352b22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class MapsDemo extends StatelessWidget {
void _pushPage(BuildContext context, Page page) async {
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

0 comments on commit e352b22

Please sign in to comment.