vendredi 5 mars 2021

Flutter Web App Not Working Due to Web Entry Point Error

I was trying flutter 2 and had a existing flutter mobile app working in android and iOS. For some reason that is having some problems and not working for me. When I run it on chrome I get this yellow line highlight in web_entrypoint.dart

enter image description here

And after I resume from that I get the following in my console.

enter image description here

And all this gives me a blank screen. There is also an autogenerated file created inside my lib folder. The file name is generated_plugin_registrant.dart. The file contains the following code.

//
// Generated file. Do not edit.
//

// ignore_for_file: lines_longer_than_80_chars

import 'package:cloud_firestore_web/cloud_firestore_web.dart';
import 'package:firebase_auth_web/firebase_auth_web.dart';
import 'package:firebase_core_web/firebase_core_web.dart';
import 'package:firebase_storage_web/firebase_storage_web.dart';
import 'package:shared_preferences_web/shared_preferences_web.dart';
import 'package:url_launcher_web/url_launcher_web.dart';

import 'package:flutter_web_plugins/flutter_web_plugins.dart';

// ignore: public_member_api_docs
void registerPlugins(Registrar registrar) {
  FirebaseFirestoreWeb.registerWith(registrar);
  FirebaseAuthWeb.registerWith(registrar);
  FirebaseCoreWeb.registerWith(registrar);
  FirebaseStorageWeb.registerWith(registrar);
  SharedPreferencesPlugin.registerWith(registrar);
  UrlLauncherPlugin.registerWith(registrar);
  registrar.registerMessageHandler();
}

Can anyone tell me what this means and how I can fix this issue as I want my app to work in web as well. Thanks




Aucun commentaire:

Enregistrer un commentaire