Skip to content

Commit 4431151

Browse files
committed
Updates linux project (#1643)
1 parent c08b6ca commit 4431151

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

geolocator_linux/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.2.2
2+
3+
- Updates dart sdk to `sdk: ^3.5.0`
4+
- Fixes analyzer issues
5+
16
## 0.2.1
27

38
- Updates dependency on package_info_plus to version 8.0.0.

geolocator_linux/example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void main() {
2121
/// Example [Widget] showing the functionalities of the geolocator plugin
2222
class GeolocatorWidget extends StatefulWidget {
2323
/// Create a GeolocatorWidget.
24-
const GeolocatorWidget({Key? key}) : super(key: key);
24+
const GeolocatorWidget({super.key});
2525

2626
/// Utility method to create a page with the Baseflow templating.
2727
static ExamplePage createPage() {

geolocator_linux/example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: Demonstrates how to use the geolocator_linux plugin.
66
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
77

88
environment:
9-
sdk: ">=2.15.0 <3.0.0"
9+
sdk: ^3.5.0
1010

1111
dependencies:
1212
baseflow_plugin_template: ^2.1.2

geolocator_linux/lib/src/geoclue_x.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ extension GeoClueLocationAccuracy on LocationAccuracy {
4545
case LocationAccuracy.best:
4646
case LocationAccuracy.bestForNavigation:
4747
return GeoClueAccuracyLevel.exact;
48-
default:
49-
return GeoClueAccuracyLevel.none;
5048
}
5149
}
5250
}

geolocator_linux/lib/src/geolocator_gnome.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
import 'package:geoclue/geoclue.dart';
21
import 'package:geolocator_platform_interface/geolocator_platform_interface.dart';
32
import 'package:gsettings/gsettings.dart';
43
import 'package:dbus/dbus.dart';
54

65
import 'geolocator_linux.dart';
76

87
class GeolocatorGnome extends GeolocatorLinux {
9-
GeolocatorGnome(GeoClueManager manager, {GSettings? settings})
10-
: _settings = settings ?? GSettings('org.gnome.system.location'),
11-
super(manager);
8+
GeolocatorGnome(super.manager, {GSettings? settings})
9+
: _settings = settings ?? GSettings('org.gnome.system.location');
1210

1311
final GSettings _settings;
1412

geolocator_linux/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ description: Geolocation Linux plugin for Flutter. This plugin provides the
33
Linux implementation for the geolocator.
44
repository: https://github.com/baseflow/flutter-geolocator/tree/main/geolocator_linux
55
issue_tracker: https://github.com/baseflow/flutter-geolocator/issues?q=is%3Aissue+is%3Aopen
6-
version: 0.2.1
6+
version: 0.2.2
77

88
environment:
9-
sdk: '>=2.15.0 <4.0.0'
9+
sdk: ^3.5.0
1010
flutter: ">=2.8.0"
1111

1212
flutter:

0 commit comments

Comments
 (0)