0

I need to add Firebase, Firebase Firestore & Messaging to my flutter desktop app.

in my android app it is working well. i need to this to work on desktop app.

when I run flutter app on windows, it showing the welcome screen logo, stuck on the logo

it is not going to another screen

    import 'package:flutter/material.dart';
import 'package:graphic_solutions/Auth/login_Screen.dart';
import 'package:graphic_solutions/MainScreen.dart';
import 'package:graphic_solutions/WelcomeScreen.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:graphic_solutions/api/firebase_api.dart';
import 'firebase_config.dart';
import 'package:upgrader/upgrader.dart';

void main() async {
  FirebaseConfig.configure();
  WidgetsFlutterBinding.ensureInitialized();

  

  runApp(
    const MyApp(),
  );
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Graphsol',
      initialRoute: '/welcome_screen',
      routes: {
        '/welcome_screen': (context) => const WelcomeScreen(),
        '/main_screen': (context) => const MainScreen(),
        '/login_screen': (context) => const LoginScreen(),
      },
    );
  }
}

1 Answer 1

0

According to

they are not available for windows however firebase core is available for windows

Sign up to request clarification or add additional context in comments.

1 Comment

firebase core I used this on the project it is working for web, android,ios but not for windows

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.