Skip to content

Commit

Permalink
upd web icons & add base href
Browse files Browse the repository at this point in the history
  • Loading branch information
X-Wei committed Jun 9, 2024
1 parent fefff3e commit f1c9f97
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 4 deletions.
3 changes: 3 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ flutter_launcher_icons:
ios: true
remove_alpha_ios: true
image_path: res/images/app_icon.png
web:
generate: true
image_path: res/images/app_icon.png

# $ dart run flutter_native_splash:create
# Cf. https://pub.dev/packages/flutter_native_splash
Expand Down
Binary file modified web/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified web/icons/Icon-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified web/icons/Icon-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified web/icons/Icon-maskable-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified web/icons/Icon-maskable-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
Fore more details:
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
-->
<!-- ! I have to disable base ref for github pages to render correctly :/
cf. https://stackoverflow.com/a/64708825/12421326 -->
<!-- <base href="/"> -->
<base href="$FLUTTER_BASE_HREF">

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




<style id="splash-screen-style">
html {
height: 100%
Expand Down Expand Up @@ -109,6 +109,7 @@




<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/7.20.0/firebase-app.js"></script>
<!--Add SDKs for Firebase products that you want to use
Expand Down
14 changes: 13 additions & 1 deletion web/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@
"src": "icons/Icon-512.png",
"sizes": "512x512",
"type": "image/png"
},
{
"src": "icons/Icon-maskable-192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "icons/Icon-maskable-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
]
}
}

0 comments on commit f1c9f97

Please sign in to comment.