yandex / yandex_maps_mapkit

Other
4 stars 2 forks source link

Not compatible with flutter v3.22 #4

Closed nikitinas closed 4 months ago

nikitinas commented 5 months ago

I build a project that targets flutter 3.22 and uses mapkit.

When I add an import

import 'package:yandex_maps_mapkit/init.dart' as init

I get an error:

../../../.pub-cache/hosted/pub.dev/yandex_maps_mapkit-4.6.1-beta1/lib/src/bindings/ui_view/view_provider.dart:36:11: Error: No named parameter with the name 'size'.
          size: mediaQuery.size,
          ^^^^
../flutter/packages/flutter/lib/src/rendering/view.dart:28:9: Context: Found this candidate, but the arguments don't match.
  const ViewConfiguration({
        ^^^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception

This problem seems to be caused by this change in flutter 3.19

Could you, please, specify, which flutter versions are currently supported by mapkit?

gle6ru381ya commented 4 months ago

Fixed in 4.6.1-beta2. Supported flutter version >=3.13.1