Skip to content

Commit

Permalink
[geolocator_linux]: Bump flutter_lints from 1.0.4 to 2.0.3 in /geoloc…
Browse files Browse the repository at this point in the history
…ator_linux/example (#1434)

* [geolocator_linux]: Bump flutter_lints in /geolocator_linux/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] <support@github.com>

* Fix analysis warnings

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Maurits van Beusekom <maurits@vnbskm.nl>
  • Loading branch information
dependabot[bot] and mvanbeusekom committed Jan 31, 2024
1 parent 699c7de commit 524830d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions geolocator_linux/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class GeolocatorWidget extends StatefulWidget {
}

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

class _GeolocatorWidgetState extends State<GeolocatorWidget> {
Expand Down Expand Up @@ -85,28 +85,28 @@ 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: _toggleListening,
tooltip: (_positionStreamSubscription == null)
? 'Start position updates'
: _positionStreamSubscription!.isPaused
? 'Resume'
: 'Pause',
backgroundColor: _determineButtonColor(),
child: (_positionStreamSubscription == null ||
_positionStreamSubscription!.isPaused)
? const Icon(Icons.play_arrow)
: const Icon(Icons.pause),
),
buttonSpacer,
FloatingActionButton(
child: const Icon(Icons.my_location),
onPressed: _getCurrentPosition,
child: const Icon(Icons.my_location),
),
buttonSpacer,
FloatingActionButton(
child: const Icon(Icons.close),
onPressed: () => setState(_positionItems.clear),
tooltip: 'clear',
child: const Icon(Icons.close),
),
],
),
Expand Down
3 changes: 2 additions & 1 deletion geolocator_linux/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ dependencies:
# The following adds the URL Launcher plugin which is used by
# the demo application to open the links in the web browser.
url_launcher: ^6.0.18
geolocator_platform_interface: ^4.2.0

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 524830d

Please sign in to comment.