Skip to content

Commit

Permalink
[geolocator]: Bump flutter_lints from 1.0.4 to 2.0.3 in /geolocator/e…
Browse files Browse the repository at this point in the history
…xample (Baseflow#1433)

* [geolocator]: Bump flutter_lints in /geolocator/example

Bumps [flutter_lints](https://github.com/flutter/packages/tree/main/packages) from 1.0.4 to 2.0.3.
- [Release notes](https://github.com/flutter/packages/releases)
- [Commits](https://github.com/flutter/packages/commits/flutter_lints-v2.0.3/packages)

---
updated-dependencies:
- dependency-name: flutter_lints
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* [geolocator]: Bump flutter_lints in /geolocator/example

Bumps [flutter_lints](https://github.com/flutter/packages/tree/main/packages) from 1.0.4 to 2.0.3.
- [Release notes](https://github.com/flutter/packages/releases)
- [Commits](https://github.com/flutter/packages/commits/flutter_lints-v2.0.3/packages)

---
updated-dependencies:
- dependency-name: flutter_lints
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Use correct constraint

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Maurits van Beusekom <[email protected]>
  • Loading branch information
dependabot[bot] and mvanbeusekom authored Jan 31, 2024
1 parent 6832dc3 commit 387b48a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions geolocator/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class GeolocatorWidget extends StatefulWidget {
}

@override
_GeolocatorWidgetState createState() => _GeolocatorWidgetState();
State<GeolocatorWidget> createState() => _GeolocatorWidgetState();
}

class _GeolocatorWidgetState extends State<GeolocatorWidget> {
Expand Down Expand Up @@ -76,26 +76,26 @@ class _GeolocatorWidgetState extends State<GeolocatorWidget> {
itemBuilder: (context) => [
if (Platform.isIOS)
const PopupMenuItem(
child: Text("Get Location Accuracy"),
value: 1,
child: Text("Get Location Accuracy"),
),
if (Platform.isIOS)
const PopupMenuItem(
child: Text("Request Temporary Full Accuracy"),
value: 2,
child: Text("Request Temporary Full Accuracy"),
),
const PopupMenuItem(
child: Text("Open App Settings"),
value: 3,
child: Text("Open App Settings"),
),
if (Platform.isAndroid || Platform.isWindows)
const PopupMenuItem(
child: Text("Open Location Settings"),
value: 4,
child: Text("Open Location Settings"),
),
const PopupMenuItem(
child: Text("Clear"),
value: 5,
child: Text("Clear"),
),
],
);
Expand Down Expand Up @@ -151,10 +151,6 @@ class _GeolocatorWidgetState extends State<GeolocatorWidget> {
mainAxisAlignment: MainAxisAlignment.end,
children: [
FloatingActionButton(
child: (_positionStreamSubscription == null ||
_positionStreamSubscription!.isPaused)
? const Icon(Icons.play_arrow)
: const Icon(Icons.pause),
onPressed: () {
positionStreamStarted = !positionStreamStarted;
_toggleListening();
Expand All @@ -165,16 +161,20 @@ class _GeolocatorWidgetState extends State<GeolocatorWidget> {
? 'Resume'
: 'Pause',
backgroundColor: _determineButtonColor(),
child: (_positionStreamSubscription == null ||
_positionStreamSubscription!.isPaused)
? const Icon(Icons.play_arrow)
: const Icon(Icons.pause),
),
sizedBox,
FloatingActionButton(
child: const Icon(Icons.my_location),
onPressed: _getCurrentPosition,
child: const Icon(Icons.my_location),
),
sizedBox,
FloatingActionButton(
child: const Icon(Icons.bookmark),
onPressed: _getLastKnownPosition,
child: const Icon(Icons.bookmark),
),
],
),
Expand Down
2 changes: 1 addition & 1 deletion geolocator/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^1.0.4
flutter_lints: ^3.0.1

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
Expand Down

0 comments on commit 387b48a

Please sign in to comment.