10/27/1
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:camera/camera.dart';
|
||||
import 'package:firebase_core/firebase_core.dart';
|
||||
import 'package:firebase_messaging/firebase_messaging.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -30,6 +31,7 @@ Future<void> backgroundMessageHandler(RemoteMessage message) async {
|
||||
if (message.notification!.title == 'Sefer') {}
|
||||
}
|
||||
|
||||
// late List<CameraDescription> cameras;
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
await GetStorage.init();
|
||||
@@ -46,10 +48,11 @@ void main() async {
|
||||
List<Future> initializationTasks = [
|
||||
FirebaseMessagesController().getNotificationSettings(),
|
||||
FirebaseMessagesController().getToken(),
|
||||
// availableCameras(),
|
||||
// FirebaseMessagesController().getTokens(),
|
||||
// Add more initialization tasks here
|
||||
];
|
||||
|
||||
// cameras = await availableCameras();
|
||||
await Future.wait(initializationTasks);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user