Skip to content

Commit 5730a59

Browse files
committed
flutter create .
(for adding the web/ folder)
1 parent fa717f0 commit 5730a59

File tree

8 files changed

+131
-0
lines changed

8 files changed

+131
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Modify this file to customize your launch splash screen -->
3+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
4+
<item android:drawable="?android:colorBackground" />
5+
6+
<!-- You can insert your own image assets here -->
7+
<!-- <item>
8+
<bitmap
9+
android:gravity="center"
10+
android:src="@mipmap/launch_image" />
11+
</item> -->
12+
</layer-list>

Diff for: android/app/src/main/res/values-night/styles.xml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
4+
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
5+
<!-- Show a splash screen on the activity. Automatically removed when
6+
Flutter draws its first frame -->
7+
<item name="android:windowBackground">@drawable/launch_background</item>
8+
</style>
9+
<!-- Theme applied to the Android Window as soon as the process has started.
10+
This theme determines the color of the Android Window while your
11+
Flutter UI initializes, as well as behind your Flutter UI while its
12+
running.
13+
14+
This Theme is only used starting with V2 of Flutter's Android embedding. -->
15+
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
16+
<item name="android:windowBackground">?android:colorBackground</item>
17+
</style>
18+
</resources>

Diff for: lib/generated_plugin_registrant.dart

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
//
2+
// Generated file. Do not edit.
3+
//
4+
5+
// ignore_for_file: lines_longer_than_80_chars
6+
7+
import 'package:cloud_firestore_web/cloud_firestore_web.dart';
8+
import 'package:firebase_analytics_web/firebase_analytics_web.dart';
9+
import 'package:firebase_auth_web/firebase_auth_web.dart';
10+
import 'package:firebase_core_web/firebase_core_web.dart';
11+
import 'package:firebase_storage_web/firebase_storage_web.dart';
12+
import 'package:fluttertoast/fluttertoast_web.dart';
13+
import 'package:google_sign_in_web/google_sign_in_web.dart';
14+
import 'package:shared_preferences_web/shared_preferences_web.dart';
15+
import 'package:url_launcher_web/url_launcher_web.dart';
16+
import 'package:video_player_web/video_player_web.dart';
17+
18+
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
19+
20+
// ignore: public_member_api_docs
21+
void registerPlugins(Registrar registrar) {
22+
FirebaseFirestoreWeb.registerWith(registrar);
23+
FirebaseAnalyticsWeb.registerWith(registrar);
24+
FirebaseAuthWeb.registerWith(registrar);
25+
FirebaseCoreWeb.registerWith(registrar);
26+
FirebaseStorageWeb.registerWith(registrar);
27+
FluttertoastWebPlugin.registerWith(registrar);
28+
GoogleSignInPlugin.registerWith(registrar);
29+
SharedPreferencesPlugin.registerWith(registrar);
30+
UrlLauncherPlugin.registerWith(registrar);
31+
VideoPlayerPlugin.registerWith(registrar);
32+
registrar.registerMessageHandler();
33+
}

Diff for: web/favicon.png

917 Bytes
Loading

Diff for: web/icons/Icon-192.png

5.17 KB
Loading

Diff for: web/icons/Icon-512.png

8.06 KB
Loading

Diff for: web/index.html

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<!--
5+
If you are serving your web app in a path other than the root, change the
6+
href value below to reflect the base path you are serving from.
7+
8+
The path provided below has to start and end with a slash "/" in order for
9+
it to work correctly.
10+
11+
Fore more details:
12+
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
13+
-->
14+
<base href="/">
15+
16+
<meta charset="UTF-8">
17+
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
18+
<meta name="description" content="A new Flutter project.">
19+
20+
<!-- iOS meta tags & icons -->
21+
<meta name="apple-mobile-web-app-capable" content="yes">
22+
<meta name="apple-mobile-web-app-status-bar-style" content="black">
23+
<meta name="apple-mobile-web-app-title" content="flutter_catalog">
24+
<link rel="apple-touch-icon" href="icons/Icon-192.png">
25+
26+
<!-- Favicon -->
27+
<link rel="icon" type="image/png" href="favicon.png"/>
28+
29+
<title>flutter_catalog</title>
30+
<link rel="manifest" href="manifest.json">
31+
</head>
32+
<body>
33+
<!-- This script installs service_worker.js to provide PWA functionality to
34+
application. For more information, see:
35+
https://developers.google.com/web/fundamentals/primers/service-workers -->
36+
<script>
37+
if ('serviceWorker' in navigator) {
38+
window.addEventListener('flutter-first-frame', function () {
39+
navigator.serviceWorker.register('flutter_service_worker.js');
40+
});
41+
}
42+
</script>
43+
<script src="main.dart.js" type="application/javascript"></script>
44+
</body>
45+
</html>

Diff for: web/manifest.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "flutter_catalog",
3+
"short_name": "flutter_catalog",
4+
"start_url": ".",
5+
"display": "standalone",
6+
"background_color": "#0175C2",
7+
"theme_color": "#0175C2",
8+
"description": "A new Flutter project.",
9+
"orientation": "portrait-primary",
10+
"prefer_related_applications": false,
11+
"icons": [
12+
{
13+
"src": "icons/Icon-192.png",
14+
"sizes": "192x192",
15+
"type": "image/png"
16+
},
17+
{
18+
"src": "icons/Icon-512.png",
19+
"sizes": "512x512",
20+
"type": "image/png"
21+
}
22+
]
23+
}

0 commit comments

Comments
 (0)