Skip to content

Commit f1c9f97

Browse files
committed
upd web icons & add base href
1 parent fefff3e commit f1c9f97

8 files changed

+20
-4
lines changed

pubspec.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ flutter_launcher_icons:
131131
ios: true
132132
remove_alpha_ios: true
133133
image_path: res/images/app_icon.png
134+
web:
135+
generate: true
136+
image_path: res/images/app_icon.png
134137

135138
# $ dart run flutter_native_splash:create
136139
# Cf. https://pub.dev/packages/flutter_native_splash

web/favicon.png

-2.5 KB
Loading

web/icons/Icon-192.png

-10 KB
Loading

web/icons/Icon-512.png

-33.6 KB
Loading

web/icons/Icon-maskable-192.png

740 Bytes
Loading

web/icons/Icon-maskable-512.png

34.6 KB
Loading

web/index.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
Fore more details:
1010
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
1111
-->
12-
<!-- ! I have to disable base ref for github pages to render correctly :/
13-
cf. https://stackoverflow.com/a/64708825/12421326 -->
14-
<!-- <base href="/"> -->
12+
<base href="$FLUTTER_BASE_HREF">
1513

1614
<meta charset="UTF-8">
1715
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
@@ -34,6 +32,8 @@
3432
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
3533

3634

35+
36+
3737
<style id="splash-screen-style">
3838
html {
3939
height: 100%
@@ -109,6 +109,7 @@
109109

110110

111111

112+
112113
<!-- The core Firebase JS SDK is always required and must be listed first -->
113114
<script src="https://www.gstatic.com/firebasejs/7.20.0/firebase-app.js"></script>
114115
<!--Add SDKs for Firebase products that you want to use

web/manifest.json

+13-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@
1818
"src": "icons/Icon-512.png",
1919
"sizes": "512x512",
2020
"type": "image/png"
21+
},
22+
{
23+
"src": "icons/Icon-maskable-192.png",
24+
"sizes": "192x192",
25+
"type": "image/png",
26+
"purpose": "maskable"
27+
},
28+
{
29+
"src": "icons/Icon-maskable-512.png",
30+
"sizes": "512x512",
31+
"type": "image/png",
32+
"purpose": "maskable"
2133
}
2234
]
23-
}
35+
}

0 commit comments

Comments
 (0)