📌  相关文章
📜  options != null "创建默认应用时,FirebaseOptions 不能为空." - 飞镖代码示例

📅  最后修改于: 2022-03-11 14:48:03.052000             🧑  作者: Mango

代码示例1
void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp(
    // Replace with actual values
    options: FirebaseOptions(
      apiKey: "XXX",
      appId: "XXX",
      messagingSenderId: "XXX",
      projectId: "XXX",
    ),
  );
  runApp(MyApp());
}