Building Error and Running on Desktop when Integrating with Firebase

Troubleshooting

I have this issue my application just white screen and don't show the UI

1st Error - when I finished buidling the
flutter: Firebase initialization error: [core/not-initialized] Firebase has not been correctly initialized.

flutter: Usually this means you've attempted to use a Firebase service before calling Firebase.initializeApp

it's just white screen

2nd error - after I change the code in firebase_config.dart

The Flutter DevTools debugger and profiler on Windows is available at:

http://127.0.0.1:9101?uri=http://127.0.0.1:55169/2mJLLO_QFbw=/

[ERROR:flutter/shell/common/shell.cc(1065)] The 'plugins.flutter.io/firebase_firestore/document/86a47d1e-0fb5-4a15-8a63-2c80abe28d73' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages must be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin

or application code creating that channel.

What have you tried so far?

I try all
Flutter pub get
Flutter clean
flutter upgrade

Changing code in firebase_config.dart it works I can see the UI but I got another error

Did you check FlutterFlow's Documentation for this topic?
Yes
1