Merge branch 'master' into feature/new-ui

This commit is contained in:
Salvatore Giordano
2020-10-12 15:00:08 +02:00
28 changed files with 538 additions and 93 deletions
+7 -5
View File
@@ -1,6 +1,7 @@
import 'dart:io';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_apns/apns.dart';
import 'package:flutter_local_notifications/flutter_local_notifications.dart'
@@ -67,8 +68,9 @@ void _initNotifications(Client client) {
void main() async {
final client = Client(
's2dxdhpxd94g',
logLevel: Level.ALL,
showLocalNotification: Platform.isAndroid ? showLocalNotification : null,
logLevel: Level.INFO,
showLocalNotification:
(!kIsWeb && Platform.isAndroid) ? showLocalNotification : null,
persistenceEnabled: true,
);
@@ -77,7 +79,9 @@ void main() async {
'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoic3VwZXItYmFuZC05In0.0L6lGoeLwkz0aZRUcpZKsvaXtNEDHBcezVTZ0oPq40A',
);
_initNotifications(client);
if (!kIsWeb) {
_initNotifications(client);
}
runApp(MyApp(client));
}
@@ -90,8 +94,6 @@ class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
// debugShowMaterialGrid: true,
// debugShowCheckedModeBanner: false,
theme: ThemeData.light(),
darkTheme: ThemeData.dark(),
themeMode: ThemeMode.system,