🐛 Fix windows rendering lack
This commit is contained in:
parent
16047a7d57
commit
c59f77c877
@ -57,13 +57,16 @@ void main() async {
|
|||||||
|
|
||||||
Future<void> _initializeFirebase() async {
|
Future<void> _initializeFirebase() async {
|
||||||
await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
|
await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
|
||||||
FlutterError.onError = (errorDetails) {
|
if (PlatformInfo.isIOS || PlatformInfo.isAndroid || PlatformInfo.isMacOS) {
|
||||||
FirebaseCrashlytics.instance.recordFlutterFatalError(errorDetails);
|
// Initialize firebase crashlytics for the platform that supported
|
||||||
};
|
FlutterError.onError = (errorDetails) {
|
||||||
PlatformDispatcher.instance.onError = (error, stack) {
|
FirebaseCrashlytics.instance.recordFlutterFatalError(errorDetails);
|
||||||
FirebaseCrashlytics.instance.recordError(error, stack, fatal: true);
|
};
|
||||||
return true;
|
PlatformDispatcher.instance.onError = (error, stack) {
|
||||||
};
|
FirebaseCrashlytics.instance.recordError(error, stack, fatal: true);
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _initializeBackgroundNotificationService() async {
|
Future<void> _initializeBackgroundNotificationService() async {
|
||||||
|
Loading…
Reference in New Issue
Block a user