|
|
|
@ -5,6 +5,7 @@ import 'package:firebase_auth/firebase_auth.dart';
|
|
|
|
|
import 'package:firebase_core/firebase_core.dart';
|
|
|
|
|
import 'package:firebase_messaging/firebase_messaging.dart';
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter/foundation.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
@ -26,8 +27,6 @@ import 'package:justmusic/view_model/UserViewModel.dart';
|
|
|
|
|
import 'package:justmusic/model/User.dart' as userJustMusic;
|
|
|
|
|
import 'firebase_options.dart';
|
|
|
|
|
import 'package:timezone/data/latest.dart' as tz;
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:intl/intl.dart';
|
|
|
|
|
import 'package:intl/date_symbol_data_local.dart';
|
|
|
|
|
|
|
|
|
|
Future<void> main() async {
|
|
|
|
@ -39,7 +38,9 @@ Future<void> main() async {
|
|
|
|
|
options: DefaultFirebaseOptions.currentPlatform,
|
|
|
|
|
);
|
|
|
|
|
await initializeDateFormatting('fr_FR', null);
|
|
|
|
|
await FirebaseMessaging.instance.requestPermission(sound: true);
|
|
|
|
|
if (!kIsWeb) {
|
|
|
|
|
await FirebaseMessaging.instance.requestPermission(sound: true);
|
|
|
|
|
}
|
|
|
|
|
runApp(const MyApp());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|