Skip to content

Commit fd1e765

Browse files
author
Rody Davis
committed
updating example and added demo
1 parent 4859d78 commit fd1e765

File tree

111 files changed

+72933
-1931
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+72933
-1931
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Avoid duplicating code and just write once for supported widgets.
1313

1414
Android will use Material Design and iOS will use Cupertino style widgets.
1515

16+
Online Demo: https://fluttercommunity.github.io/native_widgets/
17+
1618
## Usage
1719

1820
To use this plugin, add `native_widgets` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/).

docs/assets/AssetManifest.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"packages/cupertino_icons/assets/CupertinoIcons.ttf":["packages/cupertino_icons/assets/CupertinoIcons.ttf"]}

docs/assets/FontManifest.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"family":"MaterialIcons","fonts":[{"asset":"fonts/MaterialIcons-Regular.ttf"}]},{"family":"packages/cupertino_icons/CupertinoIcons","fonts":[{"asset":"packages/cupertino_icons/assets/CupertinoIcons.ttf"}]},{"family":"MaterialIcons","fonts":[{"asset":"fonts/MaterialIcons-Regular.ttf"}]}]

docs/assets/LICENSE

+14,540
Large diffs are not rendered by default.
131 KB
Binary file not shown.
Binary file not shown.

docs/favicon.png

917 Bytes
Loading

docs/flutter_service_worker.js

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
'use strict';
2+
const CACHE_NAME = 'flutter-app-cache';
3+
const RESOURCES = {
4+
"/index.html": "e36211d86e9c70409c58295974f749a1",
5+
"/main.dart.js": "fb604667472ef3b7cc78860425fef951",
6+
"/favicon.png": "5dcef449791fa27946b3d35ad8803796",
7+
"/icons/Icon-192.png": "ac9a721a12bbc803b44f645561ecb1e1",
8+
"/icons/Icon-512.png": "96e752610906ba2a93c65f8abe1645f1",
9+
"/manifest.json": "00e0b69b49487ce4f9ff0c5fac8fda49",
10+
"/assets/LICENSE": "1502721d45cdb6c295a383cdd15fb963",
11+
"/assets/AssetManifest.json": "2efbb41d7877d10aac9d091f58ccd7b9",
12+
"/assets/FontManifest.json": "f7161631e25fbd47f3180eae84053a51",
13+
"/assets/packages/cupertino_icons/assets/CupertinoIcons.ttf": "9a62a954b81a1ad45a58b9bcea89b50b",
14+
"/assets/fonts/MaterialIcons-Regular.ttf": "56d3ffdef7a25659eab6a68a3fbfaf16"
15+
};
16+
17+
self.addEventListener('activate', function (event) {
18+
event.waitUntil(
19+
caches.keys().then(function (cacheName) {
20+
return caches.delete(cacheName);
21+
}).then(function (_) {
22+
return caches.open(CACHE_NAME);
23+
}).then(function (cache) {
24+
return cache.addAll(Object.keys(RESOURCES));
25+
})
26+
);
27+
});
28+
29+
self.addEventListener('fetch', function (event) {
30+
event.respondWith(
31+
caches.match(event.request)
32+
.then(function (response) {
33+
if (response) {
34+
return response;
35+
}
36+
return fetch(event.request, {
37+
credentials: 'include'
38+
});
39+
})
40+
);
41+
});

docs/icons/Icon-192.png

5.17 KB
Loading

docs/icons/Icon-512.png

8.06 KB
Loading

docs/index.html

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
6+
<meta name="description" content="A new Flutter project.">
7+
8+
<!-- iOS meta tags & icons -->
9+
<meta name="apple-mobile-web-app-capable" content="yes">
10+
<meta name="apple-mobile-web-status-bar-style" content="black">
11+
<meta name="apple-mobile-web-app-title" content="example">
12+
<link rel="apple-touch-icon" href="/icons/Icon-192.png">
13+
14+
<!-- Favicon -->
15+
<link rel="shortcut icon" type="image/png" href="/favicon.png"/>
16+
17+
<title>example</title>
18+
<link rel="manifest" href="/manifest.json">
19+
</head>
20+
<body>
21+
<!-- This script installs service_worker.js to provide PWA functionality to
22+
application. For more information, see:
23+
https://developers.google.com/web/fundamentals/primers/service-workers -->
24+
<script>
25+
if ('serviceWorker' in navigator) {
26+
window.addEventListener('load', function () {
27+
navigator.serviceWorker.register('/flutter_service_worker.js');
28+
});
29+
}
30+
</script>
31+
<script src="main.dart.js" type="application/javascript"></script>
32+
</body>
33+
</html>

0 commit comments

Comments
 (0)