@@ -19,9 +19,14 @@ class _MapPageState extends State<MapPage> {
19
19
20
20
jag.Jaguar server;
21
21
22
- final String hostUrl = "127.0.0.1:9999 " ;
22
+ // final String hostUrl = "insti.app ";
23
23
// final String mapUrl = "https://insti.app/map/?sandbox=true";
24
- final String mapUrl = "http://127.0.0.1:9999/" ;
24
+
25
+ // final String hostUrl = "127.0.0.1:9999";
26
+ // final String mapUrl = "http://127.0.0.1:9999/";
27
+
28
+ final String hostUrl = "pulsejet.github.io" ;
29
+ final String mapUrl = "https://pulsejet.github.io/instimapweb-standalone/" ;
25
30
26
31
StreamSubscription <String > onUrlChangedSub;
27
32
StreamSubscription <WebViewStateChanged > onStateChangedSub;
@@ -32,10 +37,11 @@ class _MapPageState extends State<MapPage> {
32
37
@override
33
38
void initState () {
34
39
super .initState ();
35
- startMapServerIfNotStarted ().then ((_) {
36
- flutterWebviewPlugin.reloadUrl (mapUrl);
37
- flutterWebviewPlugin.hide ();
38
- });
40
+
41
+ // startMapServerIfNotStarted().then((_) {
42
+ // flutterWebviewPlugin.reloadUrl(mapUrl);
43
+ // flutterWebviewPlugin.hide();
44
+ // });
39
45
40
46
onUrlChangedSub = flutterWebviewPlugin.onUrlChanged.listen ((String url) {
41
47
print ("Changed URL: $url " );
@@ -114,6 +120,7 @@ class _MapPageState extends State<MapPage> {
114
120
return server.serve ();
115
121
} catch (e) {
116
122
// Already server running
123
+ return Future .delayed (Duration .zero);
117
124
}
118
125
}
119
126
}
0 commit comments