在这里SDK Flutter 3.0

发布于 2025-01-29 09:01:54 字数 902 浏览 2 评论 0 原文

我在此处使用SDK进行颤动。现在,随着Flutter 3.0的更新,它破裂了。

我试图更改该软件包内部的无效操作员和

插件/thor_sdk/lib/src/sdk/mapview/thore_map.dart

---->没有更多的错误。

里面

插件/thore_sdk/android/src/main/kotlin/com/shere/mapview/mapcontroller.kt

行52

      plugin.registrar!!.activity().application.registerActivityLifecycleCallbacks(this)

更改为:

      plugin.registrar!!.activity()!.application.registerActivityLifecycleCallbacks(this)

第114行:

  plugin.registrar!!.activity().application.unregisterActivityLifecycleCallbacks(this)

更改为:

  plugin.registrar!!.activity()!.application.unregisterActivityLifecycleCallbacks(this)

现在映射构建,但在状态之间处于某种状态。没有错误,地图不可控制。

--->我的其余UI无法构建。

我应该等待官方更新还是使用Flutter 2.10.5?

Im Using Here SDK for Flutter. Now with the Flutter 3.0 update it broke.

I tried to change the null aware operators inside that package and the

plugins/here_sdk/lib/src/sdk/mapview/here_map.dart

---> No more errors.

inside

plugins/here_sdk/android/src/main/kotlin/com/here/mapview/MapController.kt

line 52

      plugin.registrar!!.activity().application.registerActivityLifecycleCallbacks(this)

changed to:

      plugin.registrar!!.activity()!.application.registerActivityLifecycleCallbacks(this)

line 114:

  plugin.registrar!!.activity().application.unregisterActivityLifecycleCallbacks(this)

changed to :

  plugin.registrar!!.activity()!.application.unregisterActivityLifecycleCallbacks(this)

Now the maps Builds but is in some kind of between state. There is no error and the map is not controllable.

---> Rest of my UI doesn't build.

Should i wait for the Offical update or stay with Flutter 2.10.5 ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

偏爱自由 2025-02-05 09:01:54

如在评论中所述,我们不支持颤动3。

请检查最低要求对于此处的SDK扑朔迷离。

As told in comment the we are not supporting the Flutter 3.

Please check the minimum-requirements for the HERE SDK flutter.

酒废 2025-02-05 09:01:54

由于4.12.7您实际上会这样做。忘了回答。

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文