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/