You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Проверите корректно ли указаны ENV['YANDEX_MAPKIT_VARIANT'] и yandexMapkit.variant в вашем проекте. Если они не указаны, то необходимо проставить значение full.
......pubspec.yaml..........
environment:
sdk: '>=3.2.2 <4.0.0'
dependencies:
yandex_mapkit: ^4.1.0
.......
........ Code ........
Future<String?> getPlaceMarkFromYandex(Point? position) async {
SearchSessionResult? resultWithSession;
if (position != null) {
resultWithSession = await (await YandexSearch.searchByPoint(point: position, searchOptions: const SearchOptions(searchType: SearchType.none, geometry: false))).$2;
}
var address = (resultWithSession)?.items?.first.toponymMetadata?.address.addressComponents.formatAddressYandex();
return address;
}
............
Error
I/flutter (27604): MissingPluginException(No implementation found for method initSession on channel yandex_mapkit/yandex_search)
I/flutter (27604): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:320:7)
I/flutter (27604):
I/flutter (27604): #1 YandexSearch._initSession (package:yandex_mapkit/src/yandex_search.dart:36:5)
I/flutter (27604):
I/flutter (27604): #2 YandexSearch.searchByPoint (package:yandex_mapkit/src/yandex_search.dart:27:21)
I/flutter (27604):
I/flutter (27604): #3 getPlaceMarkFromYandex (package:al_mansur_driver/utils/utils.dart:908:32)
I/flutter (27604):
The text was updated successfully, but these errors were encountered: