I Got This Weird Error:
"Undefined name 'DefaultfirebaseOptions' "
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text("Register"),
),
body:FutureBuilder(
future: Firebase.initializeApp(
options: DefaultfirebaseOptions.currentPlatform,
),
builder: (context,snapshot) {
switch (snapshot.connectionState) {
case ConnectionState.done:```
CodePudding user response:
You need to set up Firebase on your project. Start with firebase init
then import the file