Skip to content

Commit c19241f

Browse files
committed
Updated web to new formats
1 parent 1ad2de3 commit c19241f

File tree

2 files changed

+35
-48
lines changed

2 files changed

+35
-48
lines changed

commands.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
# Commands
22

3-
## Android
3+
## Android
44

55
### App bundle (windows)
66

77
```bash
88
flutter build appbundle -t .\lib\main.firebase.dart --release
99
cp build\app\outputs\bundle\release\app-release.aab ~\Desktop\fuid\
10-
```
10+
```
11+
12+
## Web
13+
14+
### WASM
15+
16+
```bash
17+
flutter build web --wasm --no-tree-shake-icons
18+
```

web/index.html

Lines changed: 25 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,38 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html>
3-
<head>
4-
<!--
3+
<head>
4+
<!--
55
If you are serving your web app in a path other than the root, change the
66
href value below to reflect the base path you are serving from.
7-
7+
88
The path provided below has to start and end with a slash "/" in order for
99
it to work correctly.
10-
10+
1111
For more details:
1212
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
13-
13+
1414
This is a placeholder for base href that will be replaced by the value of
1515
the `--base-href` argument provided to `flutter build`.
1616
-->
17-
<base href="$FLUTTER_BASE_HREF">
17+
<base href="$FLUTTER_BASE_HREF" />
18+
19+
<meta charset="UTF-8" />
20+
<meta content="IE=Edge" http-equiv="X-UA-Compatible" />
21+
22+
<!-- iOS meta tags & icons -->
23+
<meta name="apple-mobile-web-app-capable" content="yes" />
24+
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
25+
<meta name="apple-mobile-web-app-title" content="flutter_uis" />
26+
<link rel="apple-touch-icon" href="icons/Icon-192.png" />
1827

19-
<meta charset="UTF-8">
20-
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
21-
<meta name="description" content="A new Flutter project.">
22-
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">
28-
29-
<!-- Favicon -->
30-
<link rel="icon" type="image/png" href="favicon.png" />
31-
32-
<title>flutter_uis</title>
33-
<link rel="manifest" href="manifest.json">
34-
35-
<script>
36-
// The value below is injected by flutter build, do not touch.
37-
var serviceWorkerVersion = null;
38-
</script>
39-
<!-- This script adds the flutter initialization JS code -->
40-
<script src="flutter.js" defer></script>
41-
</head>
42-
<body>
43-
<script>
28+
<!-- Favicon -->
29+
<link rel="icon" type="image/png" href="favicon.png" />
4430

45-
window.addEventListener('load', function (ev) {
46-
// Download main.dart.js
47-
_flutter.loader.loadEntrypoint({
48-
serviceWorker: {
49-
serviceWorkerVersion: serviceWorkerVersion,
50-
}
51-
}).then(function (engineInitializer) {
52-
return engineInitializer.initializeEngine();
53-
}).then(function (appRunner) {
54-
return appRunner.runApp();
55-
});
56-
});
57-
</script>
58-
</body>
31+
<title>flutter_uis</title>
32+
<meta name="description" content="A new Flutter project." />
33+
<link rel="manifest" href="manifest.json" />
34+
</head>
35+
<body>
36+
<script src="flutter_bootstrap.js" async></script>
37+
</body>
5938
</html>

0 commit comments

Comments
 (0)