Skip to content

Commit

Permalink
[geolocator_web]: Bump flutter_lints from 1.0.4 to 2.0.3 in /geolocat…
Browse files Browse the repository at this point in the history
…or_web/example (#1431)

* [geolocator_web]: Bump flutter_lints in /geolocator_web/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_web]: Bump flutter_lints in /geolocator_web/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]>

* Fix analysis warnings

---------

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 30, 2024
1 parent 41dc12e commit a3a95c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions geolocator_web/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
2 changes: 1 addition & 1 deletion geolocator_web/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,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 a3a95c1

Please sign in to comment.