web bug fixed
This commit is contained in:
parent
a0ee95cab8
commit
fc2bf59620
|
|
@ -3,11 +3,11 @@ name: app-test
|
||||||
spec:
|
spec:
|
||||||
allow_http: false
|
allow_http: false
|
||||||
disable_default_domains: true
|
disable_default_domains: true
|
||||||
image: app:2.2.1
|
image: app:2.2.1.2
|
||||||
image_pull_policy: IfNotPresent
|
image_pull_policy: IfNotPresent
|
||||||
path: /
|
path: /
|
||||||
replicas: 1
|
replicas: 1
|
||||||
resources:
|
resources:
|
||||||
memory: 100Mi
|
memory: 256Mi
|
||||||
domains:
|
domains:
|
||||||
- name: web.didvan.app
|
- name: web.didvan.app
|
||||||
|
|
|
||||||
|
|
@ -8,19 +8,22 @@ import 'package:didvan/services/app_initalizer.dart';
|
||||||
import 'package:didvan/views/home/studio/studio_details/studio_details_state.dart';
|
import 'package:didvan/views/home/studio/studio_details/studio_details_state.dart';
|
||||||
import 'package:firebase_core/firebase_core.dart';
|
import 'package:firebase_core/firebase_core.dart';
|
||||||
import 'package:firebase_messaging/firebase_messaging.dart';
|
import 'package:firebase_messaging/firebase_messaging.dart';
|
||||||
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_localizations/flutter_localizations.dart';
|
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
void main() async {
|
void main() async {
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
if (!kIsWeb) {
|
||||||
await Firebase.initializeApp();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
final initMsg = await FirebaseMessaging.instance.getInitialMessage();
|
await Firebase.initializeApp();
|
||||||
if (initMsg != null) {
|
final initMsg = await FirebaseMessaging.instance.getInitialMessage();
|
||||||
AppInitializer.clickAction = initMsg.data['click_action'].replaceAll(
|
if (initMsg != null) {
|
||||||
'navigate-',
|
AppInitializer.clickAction = initMsg.data['click_action'].replaceAll(
|
||||||
'',
|
'navigate-',
|
||||||
);
|
'',
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
runApp(const Didvan());
|
runApp(const Didvan());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue