1- <!DOCTYPE html> < html > < head >
2- <!--
1+ <!DOCTYPE html>
2+ < html >
3+
4+ < head >
5+ <!--
36 If you are serving your web app in a path other than the root, change the
47 href value below to reflect the base path you are serving from.
58
1215 This is a placeholder for base href that will be replaced by the value of
1316 the `--base-href` argument provided to `flutter build`.
1417 -->
15- < base href ="$FLUTTER_BASE_HREF ">
18+ < base href ="$FLUTTER_BASE_HREF ">
1619
17- < meta charset ="UTF-8 ">
18- < meta content ="IE=Edge " http-equiv ="X-UA-Compatible ">
20+ < meta charset ="UTF-8 ">
21+ < meta content ="IE=Edge " http-equiv ="X-UA-Compatible ">
1922
20- <!-- iOS meta tags & icons -->
21- < meta name ="apple-mobile-web-app-capable " content ="yes ">
22- < meta name ="apple-mobile-web-app-status-bar-style " content ="black ">
23- < meta name ="apple-mobile-web-app-title " content ="flutter_uis ">
24- < link rel ="apple-touch-icon " href ="icons/Icon-192.png ">
23+ <!-- iOS meta tags & icons -->
24+ < meta name ="apple-mobile-web-app-capable " content ="yes ">
25+ < meta name ="apple-mobile-web-app-status-bar-style " content ="black ">
26+ < meta name ="apple-mobile-web-app-title " content ="flutter_uis ">
27+ < link rel ="apple-touch-icon " href ="icons/Icon-192.png ">
2528
26- <!-- Favicon -->
27- < link rel ="icon " type ="image/png " href ="favicon.png ">
29+ <!-- Favicon -->
30+ < link rel ="icon " type ="image/png " href ="favicon.png ">
2831
29- < title > flutter_uis</ title >
30- < meta name ="description " content ="A new Flutter project. ">
31- < link rel ="manifest " href ="manifest.json ">
32- < style id ="splash-screen-style ">
32+ < title > flutter_uis</ title >
33+ < meta name ="description " content ="A new Flutter project. ">
34+ < link rel ="manifest " href ="manifest.json ">
35+ < style id ="splash-screen-style ">
3336 html {
3437 height : 100%
3538 }
3841 margin : 0 ;
3942 min-height : 100% ;
4043 background-color : # ffffff ;
41- background-size : 100% 100% ;
44+ background-size : 100% 100% ;
4245 }
4346
4447 .center {
5154 }
5255
5356 .contain {
54- display : block;
55- width : 100% ; height : 100% ;
57+ display : block;
58+ width : 100% ;
59+ height : 100% ;
5660 object-fit : contain;
5761 }
5862
5963 .stretch {
60- display : block;
61- width : 100% ; height : 100% ;
64+ display : block;
65+ width : 100% ;
66+ height : 100% ;
6267 }
6368
6469 .cover {
65- display : block;
66- width : 100% ; height : 100% ;
70+ display : block;
71+ width : 100% ;
72+ height : 100% ;
6773 object-fit : cover;
6874 }
6975
9096 @media (prefers-color-scheme : dark) {
9197 body {
9298 background-color : # 000000 ;
93- }
99+ }
94100 }
95101 </ style >
96102 < script id ="splash-screen-script ">
102108 </ script >
103109 < meta content ="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no " name ="viewport ">
104110</ head >
105- < body >
111+
112+ < body >
106113 < picture id ="splash ">
107- < source srcset ="splash/img/light-1x.png 1x, splash/img/light-2x.png 2x, splash/img/light-3x.png 3x, splash/img/light-4x.png 4x " media ="(prefers-color-scheme: light) ">
108- < source srcset ="splash/img/dark-1x.png 1x, splash/img/dark-2x.png 2x, splash/img/dark-3x.png 3x, splash/img/dark-4x.png 4x " media ="(prefers-color-scheme: dark) ">
109- < img class ="center " aria-hidden ="true " src ="splash/img/light-1x.png " alt ="">
114+ < source
115+ srcset ="splash/img/light-1x.png 1x, splash/img/light-2x.png 2x, splash/img/light-3x.png 3x, splash/img/light-4x.png 4x "
116+ media ="(prefers-color-scheme: light) ">
117+ < source
118+ srcset ="splash/img/dark-1x.png 1x, splash/img/dark-2x.png 2x, splash/img/dark-3x.png 3x, splash/img/dark-4x.png 4x "
119+ media ="(prefers-color-scheme: dark) ">
120+ < img class ="center " aria-hidden ="true " src ="splash/img/light-1x.png " alt ="">
110121 </ picture >
111- < script src ="flutter_bootstrap.js " async =""> </ script >
112-
122+ < script src ="flutter_bootstrap.js " async =""> </ script >
123+ < script >
124+ console . log ( 'Loading flutter...' ) ;
125+ if ( 'serviceWorker' in navigator ) {
126+ console . log ( 'Registering service worker...' ) ;
127+ window . addEventListener ( 'load' , function ( ) {
128+ console . log ( 'Service worker loaded...' ) ;
129+ let scope = { scope : '/firebase-cloud-messaging-push-scope' } ;
130+ navigator . serviceWorker . register ( 'firebase-messaging-sw.js' , scope ) ;
131+ // });
132+ } ) ;
133+ }
134+ </ script >
135+
136+ </ body >
113137
114- </ body > </ html >
138+ </ html >
0 commit comments