Skip to content

Commit acb0e0f

Browse files
Fixed request location issue + formatting
1 parent ac97cfd commit acb0e0f

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ subprojects {
2626
project.evaluationDependsOn(':app')
2727
}
2828

29-
task clean(type: Delete) {
29+
tasks.register("clean", Delete) {
3030
delete rootProject.buildDir
3131
}

example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class _MyAppState extends State<MyApp> {
162162
}
163163

164164
Future<void> _requestLocationPermission() async {
165-
final result = await Permission.locationAlways.request();
165+
final result = await Permission.location.request();
166166
if (result == PermissionStatus.granted) {
167167
print('GRANTED'); // ignore: avoid_print
168168
} else {

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ packages:
2323
path: ".."
2424
relative: true
2525
source: path
26-
version: "1.4.1"
26+
version: "1.4.2"
2727
boolean_selector:
2828
dependency: transitive
2929
description:

lib/src/model/background_location_update_data.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ class BackgroundLocationUpdateData {
7373

7474
String toJson() => json.encode(toMap());
7575

76-
factory BackgroundLocationUpdateData.fromJson(String source) => BackgroundLocationUpdateData.fromMap(json.decode(source));
76+
factory BackgroundLocationUpdateData.fromJson(String source) =>
77+
BackgroundLocationUpdateData.fromMap(json.decode(source));
7778

7879
@override
7980
bool operator ==(Object other) {

0 commit comments

Comments
 (0)