codingecho

日々の体験などを書いてます

Flutter

Flutter 1.0.0でCloud Functionsの非同期処理のレスポンスが返ってこないとき

Flutter上でCloud Functionsを使用しするとき非同期で取得しますが、結果が返ってこないときの対処法を紹介します。 Flutterのバージョン: 1.0.0 TL;DR cloud_functionsパッケージを使ったCloud Functionsの呼び出しが完了しないpubspec.yamlのdependencies…

Use Cloud Functions on Flutter 1.0.0

When you use Cloud Functions on Flutter, you might add some dependencies in pubspec.yaml. My Flutter app's versionFlutter: 1.0.0 Below is my code uses FutureBuilder. FutureBuilder( future: CloudFunctions.instance.call(functionName: 'hello'…