-
main.dart import 'package:firebase_app_check/firebase_app_check.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:myguide/ui/screen/home.dart';
import 'package:myguide/ui/screen/login.dart';
late final FirebaseApp firebaseApp;
void main() {
WidgetsFlutterBinding.ensureInitialized();
Firebase.initializeApp()
.then((app) => firebaseApp = app)
.then((_) => FirebaseAppCheck.instance.activate(
webRecaptchaSiteKey: '6LdRiP8cAAAAAAcplxBPieXdqrKy0-S2c9pYq1yC'))
.then((_) {
print("App: $firebaseApp");
}).then((_) => runApp(GetMaterialApp(
title: "MyGuide",
themeMode: ThemeMode.system,
theme: ThemeData(),
darkTheme: ThemeData(),
scrollBehavior: const ScrollBehavior().copyWith(
dragDevices: {
PointerDeviceKind.mouse,
PointerDeviceKind.stylus,
PointerDeviceKind.touch
},
),
color: Colors.blue,
initialRoute: "/login",
getPages: [
GetPage(name: "/", page: () => const HomeScreen()),
GetPage(name: "/login", page: () => const LoginScreen())
],
)));
} index.html (GH formatter isnt great with html) Running with web
|
Beta Was this translation helpful? Give feedback.
Answered by
cyberpwnn
Oct 29, 2021
Replies: 1 comment
-
Looks like no one is in discussions based on all the unanswered questions. Submitting bug report instead. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cyberpwnn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like no one is in discussions based on all the unanswered questions. Submitting bug report instead.