mirror of
https://github.com/flutter/samples.git
synced 2026-03-24 21:31:47 +00:00
Add flutter_web samples (#75)
This commit is contained in:
committed by
Andrew Brogdon
parent
42f2dce01b
commit
3fe927cb29
10
web/charts/example/web/assets/FontManifest.json
Normal file
10
web/charts/example/web/assets/FontManifest.json
Normal file
@@ -0,0 +1,10 @@
|
||||
[
|
||||
{
|
||||
"family": "MaterialIcons",
|
||||
"fonts": [
|
||||
{
|
||||
"asset": "https://fonts.gstatic.com/s/materialicons/v42/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
10
web/charts/example/web/index.html
Normal file
10
web/charts/example/web/index.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
<script defer src="main.dart.js" type="application/javascript"></script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
10
web/charts/example/web/main.dart
Normal file
10
web/charts/example/web/main.dart
Normal file
@@ -0,0 +1,10 @@
|
||||
// Copyright 2019 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
import 'package:flutter_web_ui/ui.dart' as ui;
|
||||
import 'package:example/main.dart' as app;
|
||||
|
||||
main() async {
|
||||
await ui.webOnlyInitializePlatform();
|
||||
app.main();
|
||||
}
|
||||
BIN
web/charts/example/web/preview.png
Normal file
BIN
web/charts/example/web/preview.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.6 KiB |
Reference in New Issue
Block a user