From a3a95c1f4ce83341b8a1034379c9426753becb1d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 30 Jan 2024 13:17:31 +0100 Subject: [PATCH] [geolocator_web]: Bump flutter_lints from 1.0.4 to 2.0.3 in /geolocator_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] * [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] * Fix analysis warnings --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Maurits van Beusekom --- geolocator_web/example/lib/main.dart | 14 +++++++------- geolocator_web/example/pubspec.yaml | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/geolocator_web/example/lib/main.dart b/geolocator_web/example/lib/main.dart index 8e058ed2e..cf51de566 100644 --- a/geolocator_web/example/lib/main.dart +++ b/geolocator_web/example/lib/main.dart @@ -30,7 +30,7 @@ class GeolocatorWidget extends StatefulWidget { } @override - _GeolocatorWidgetState createState() => _GeolocatorWidgetState(); + State createState() => _GeolocatorWidgetState(); } class _GeolocatorWidgetState extends State { @@ -85,10 +85,6 @@ class _GeolocatorWidgetState extends State { 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' @@ -96,17 +92,21 @@ class _GeolocatorWidgetState extends State { ? '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), ), ], ), diff --git a/geolocator_web/example/pubspec.yaml b/geolocator_web/example/pubspec.yaml index cc62c24be..e0da5627d 100644 --- a/geolocator_web/example/pubspec.yaml +++ b/geolocator_web/example/pubspec.yaml @@ -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