Skip to content

Commit

Permalink
Geolocator publishing fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
FeodorFitsner committed Aug 30, 2024
1 parent 35616da commit fccec01
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,15 @@ 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
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
Expand Down
3 changes: 2 additions & 1 deletion packages/flet_geolocator/lib/src/geolocator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class _GeolocatorControlState extends State<GeolocatorControl>
widget.control.onRemove.add(_onRemove);
}

@override
void didChangeDependencies() {
super.didChangeDependencies();
if (widget.control.attrBool("onPositionChange", false)!) {
Expand All @@ -45,7 +46,7 @@ class _GeolocatorControlState extends State<GeolocatorControl>
(Position? newPosition) {
if (newPosition != null) {
_onPositionChange(newPosition);
debugPrint('Geolocator - ${newPosition}');
debugPrint('Geolocator - $newPosition');
} else {
debugPrint('Geolocator: Position is null.');
}
Expand Down
1 change: 1 addition & 0 deletions packages/flet_geolocator/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dependencies:
sdk: flutter

geolocator: ^13.0.1
collection: ^1.16.0

flet:
path: ../flet/
Expand Down

0 comments on commit fccec01

Please sign in to comment.