liodali / osm_flutter

OpenStreetMap plugin for flutter
https://pub.dev/packages/flutter_osm_plugin
MIT License
240 stars 98 forks source link

Method not found 'PopScope' #477

Open softplaceio opened 1 year ago

softplaceio commented 1 year ago

Hello, I have an error compiling for Linux/Desktop

All these versions have the same problem
0.70.2
0.70.1
0.70.0

Only the version below worked
0.60.5
# GPS
flutter_osm_plugin: ^0.70.2
pointer_interceptor: ^0.9.3+7
Launching lib/main.dart on Linux in debug mode...
ERROR: /home/linux/.pub-cache/hosted/pub.dev/flutter_osm_plugin-0.70.2/lib/src/widgets/picker_location.dart:54:14: Error: Method not found: 'PopScope'.
ERROR:       return PopScope(
ERROR:              ^^^^^^^^
ERROR: Target kernel_snapshot failed: Exception
Exception: Build process failed
liodali commented 1 year ago

migrate to latest flutter v3.16 ifyou cannot i will return it to willpopscope