feat: add Flutter web build support
This commit is contained in:
1
apps/user_app/web/favicon.svg
Normal file
1
apps/user_app/web/favicon.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="14" fill="#00695c"/><path d="M32 11c10 8 16 16 16 25a16 16 0 1 1-32 0c0-9 6-17 16-25Z" fill="#fff"/><path d="M25 38h14" stroke="#00695c" stroke-width="4" stroke-linecap="round"/></svg>
|
||||
|
After Width: | Height: | Size: 278 B |
1
apps/user_app/web/icons/app-icon.svg
Normal file
1
apps/user_app/web/icons/app-icon.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><rect width="512" height="512" rx="112" fill="#00695c"/><path d="M256 88c80 65 128 130 128 204a128 128 0 1 1-256 0c0-74 48-139 128-204Z" fill="#fff"/><path d="M200 310h112" stroke="#00695c" stroke-width="34" stroke-linecap="round"/></svg>
|
||||
|
After Width: | Height: | Size: 301 B |
16
apps/user_app/web/index.html
Normal file
16
apps/user_app/web/index.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<base href="$FLUTTER_BASE_HREF">
|
||||
<meta charset="UTF-8">
|
||||
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
|
||||
<meta name="description" content="和气瓶安用户端 Web 应用。">
|
||||
<meta name="theme-color" content="#00695c">
|
||||
<link rel="icon" href="favicon.svg" type="image/svg+xml">
|
||||
<link rel="manifest" href="manifest.json">
|
||||
<title>和气瓶安</title>
|
||||
</head>
|
||||
<body>
|
||||
<script src="flutter_bootstrap.js" async></script>
|
||||
</body>
|
||||
</html>
|
||||
17
apps/user_app/web/manifest.json
Normal file
17
apps/user_app/web/manifest.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "和气瓶安",
|
||||
"short_name": "和气瓶安",
|
||||
"start_url": ".",
|
||||
"display": "standalone",
|
||||
"background_color": "#ffffff",
|
||||
"theme_color": "#00695c",
|
||||
"description": "和气瓶安用户端 Web 应用。",
|
||||
"icons": [
|
||||
{
|
||||
"src": "icons/app-icon.svg",
|
||||
"sizes": "any",
|
||||
"type": "image/svg+xml",
|
||||
"purpose": "any maskable"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user