我为管理员登录编写的代码:
\nimport \'package:cloud_firestore/cloud_firestore.dart\';\nimport \'package:flutter/material.dart\';\n\nclass FirebaseServices {\n static Future<DocumentSnapshot> adminSignIn(id) async {\n var res =\n await FirebaseFirestore.instance.collection("admin").doc(id).get();\n return res;\n }\n}\nRun Code Online (Sandbox Code Playgroud)\n我收到的错误如下:
\nimport \'package:cloud_firestore/cloud_firestore.dart\';\nimport \'package:flutter/material.dart\';\n\nclass FirebaseServices {\n static Future<DocumentSnapshot> adminSignIn(id) async {\n var res =\n await FirebaseFirestore.instance.collection("admin").doc(id).get();\n return res;\n }\n}\nRun Code Online (Sandbox Code Playgroud)\n您还可以访问该项目的存储库。
\n我试着跑flutter doctor -v。进而:
+ ChromeProxyService: Failed to evaluate expression \n \'handlePrimaryPointer\':InternalError: No frame with index 45.\n+ ChromeProxyService: Failed to evaluate expression\n \'postAcceptSlopTolerance\': InternalError: No frame with index 45.\n+ ChromeProxyService: Failed to …Run Code Online (Sandbox Code Playgroud) 当我想通过 flutter 使用 chrome 设备启动我的项目时,出现此错误。
由于这些错误,chrome 模拟器停留在白屏上(不工作)。我该如何解决这个问题?