Код: Выделить всё
lib/main.dart:860:9: Error: No named parameter with the name 'builder'.
builder: (BuildContext ctx) => Container(
^^^^^^^
/C:/Users/USER/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_map-6.1.0/lib/src/layer/marker_layer.dart:60:9: Context: Found this candidate, but the arguments don't match.
const Marker({
^^^^^^
lib/main.dart:938:15: Error: No named parameter with the name 'onPlacePicked'.
onPlacePicked: (location) {
^^^^^^^^^^^^^
/C:/Users/USER/AppData/Local/Pub/Cache/hosted/pub.dev/open_street_map_search_and_pick-0.1.1/lib/open_street_map_search_and_pick.dart:31:9: Context: Found this candidate, but the arguments don't match.
const OpenStreetMapSearchAndPick({
^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/main.dart:923:22: Error: The argument type 'void Function(LatLng)' can't be assigned to the parameter type 'void Function(TapPosition, LatLng)?'.
- 'LatLng' взят из 'package:latlong2/latlong.dart' ('/C:/Users/USER/AppData/Local/Pub/Cache/ Hosted/pub.dev/latlong2-0.9.1/lib/latlong.dart').
- 'TapPosition' взят из 'package:flutter_map/src/gestures/positioned_tap_detector_2.dart' ( '/C:/Users/USER/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_map-6.1.0/lib/src/gestures/positioned_tap_detector_2.dart').
onTap: _handleTap, / / Обработка касания на карте
^
Ошибка целевого kernel_snapshot: исключение
- Что пошло не так:
Не удалось выполнить задачу ':app:compileFlutterBuildRelease'.
Команда процесса 'D:\app\sggsapp\flutter\bin\flutter.bat'' завершена с ненулевым значением выхода 1
Я пробовал много параметров изменить, но ничего не помогло. Пожалуйста, помогите мне, я использовал плагины flutter_map и open_street_map_search_and_pick.
Подробнее здесь: https://stackoverflow.com/questions/784 ... be-encoded