dart - 在 Flutter 中使用 Google Play 游戏服务?
问题描述
我想将https://developers.google.com/games/services/android/turnbasedMultiplayer用于我正在编写的 Flutter 应用程序。我将如何使用 Dart/Flutter 做到这一点?
解决方案
12/26 更新:
似乎https://pub.dev/packages/play_games缺乏 iOS 支持
所以对于一个支持iOS的插件,你可以看看:
或者
- https://pub.dev/packages/googleapis
- 这是更官方的,因为它是由 Dart.dev 团队开发的,但设置起来可能不太方便,因为它是通过 Web/REST API 完成的:
- https://github.com/dart-lang/googleapis/blob/master/generated/googleapis/lib/games/v1.dart
- https://developers.google.com/games/services/web/api
推荐阅读
- windows - 以下脚本有什么作用?
- macos - Metal 使用计算着色器模拟几何着色器
- json - 更新 JSON 文件 NodeJS
- r - How to detect warnings in R and have a while loop run on a function as along as warnings are outputted?
- android - 如何将此代码更改为 AsyncTask?
- python - 高阶函数中的闭包魔法。
- python - 不支持身份验证插件“caching_sha2_password”
- ios - 在 Xcode 界面构建器中创建动态调整大小的 UILabel
- sql - SQL 循环和执行查询 - 必须声明标量变量
- javascript - 防止点击处理程序在孩子身上触发