From fccec0156c8eef39e5a3aca99df09a6124df5502 Mon Sep 17 00:00:00 2001 From: Feodor Fitsner Date: Fri, 30 Aug 2024 16:45:35 -0700 Subject: [PATCH] Geolocator publishing fixed --- .appveyor.yml | 4 ++-- packages/flet_geolocator/lib/src/geolocator.dart | 3 ++- packages/flet_geolocator/pubspec.yaml | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index d5c602a61..1941f6369 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -120,7 +120,7 @@ for: cd packages/flet echo "Running flet tests" flutter test || exit 1 - dart pub publish --force || exit 1 + dart pub publish --force cd $APPVEYOR_BUILD_FOLDER sleep 120 @@ -128,7 +128,7 @@ for: for dir in packages/flet_*; do cd "$dir" echo "Publishing $dir package" - dart pub publish --force || exit 1 + dart pub publish --force cd "$APPVEYOR_BUILD_FOLDER" done diff --git a/packages/flet_geolocator/lib/src/geolocator.dart b/packages/flet_geolocator/lib/src/geolocator.dart index bcc9064d0..e7c7521ef 100644 --- a/packages/flet_geolocator/lib/src/geolocator.dart +++ b/packages/flet_geolocator/lib/src/geolocator.dart @@ -35,6 +35,7 @@ class _GeolocatorControlState extends State widget.control.onRemove.add(_onRemove); } + @override void didChangeDependencies() { super.didChangeDependencies(); if (widget.control.attrBool("onPositionChange", false)!) { @@ -45,7 +46,7 @@ class _GeolocatorControlState extends State (Position? newPosition) { if (newPosition != null) { _onPositionChange(newPosition); - debugPrint('Geolocator - ${newPosition}'); + debugPrint('Geolocator - $newPosition'); } else { debugPrint('Geolocator: Position is null.'); } diff --git a/packages/flet_geolocator/pubspec.yaml b/packages/flet_geolocator/pubspec.yaml index d479b5745..8a6bd414d 100644 --- a/packages/flet_geolocator/pubspec.yaml +++ b/packages/flet_geolocator/pubspec.yaml @@ -13,6 +13,7 @@ dependencies: sdk: flutter geolocator: ^13.0.1 + collection: ^1.16.0 flet: path: ../flet/