Added title and icon

This commit is contained in:
2023-09-03 10:49:50 +05:30
parent 415f894041
commit e1dec19d41
14 changed files with 28 additions and 28 deletions

BIN
assets/plate.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

@@ -20,6 +20,7 @@ class MainApp extends StatelessWidget {
create: (context) => GlobalModel(), create: (context) => GlobalModel(),
builder: (BuildContext context, child) { builder: (BuildContext context, child) {
return const MaterialApp( return const MaterialApp(
title: "IIITB Menu",
home: HomePage(), home: HomePage(),
); );
}, },

View File

@@ -1,5 +1,5 @@
name: iiitb_menu name: iiitb_menu
description: A new Flutter project. description: IIITB Bi-Weekly Menu
# The following line prevents the package from being accidentally published to # The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages. # pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev publish_to: 'none' # Remove this line if you wish to publish to pub.dev
@@ -68,8 +68,8 @@ flutter:
uses-material-design: true uses-material-design: true
# To add assets to your application, add an assets section, like this: # To add assets to your application, add an assets section, like this:
# assets: assets:
# - images/a_dot_burr.jpeg - assets/plate.png
# - images/a_dot_ham.jpeg # - images/a_dot_ham.jpeg
# An image asset can refer to one or more resolution-specific "variants", see # An image asset can refer to one or more resolution-specific "variants", see

BIN
web/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 917 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

BIN
web/icons/favicon-16x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
web/icons/favicon-32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
web/icons/favicon-96x96.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

View File

@@ -1,5 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<!-- <!--
If you are serving your web app in a path other than the root, change the If you are serving your web app in a path other than the root, change the
@@ -23,11 +24,11 @@
<!-- iOS meta tags & icons --> <!-- iOS meta tags & icons -->
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="iiitb_menu"> <meta name="apple-mobile-web-app-title" content="IIITB Menu">
<link rel="apple-touch-icon" href="icons/Icon-192.png"> <link rel="apple-touch-icon" href="icons/favicon-96x96.png">
<!-- Favicon --> <!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png"/> <link rel="icon" type="image/ico" href="favicon.ico" />
<title>iiitb_menu</title> <title>iiitb_menu</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
@@ -39,16 +40,20 @@
<!-- This script adds the flutter initialization JS code --> <!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script> <script src="flutter.js" defer></script>
</head> </head>
<body> <body>
<script> <script>
window.addEventListener('load', function(ev) { window.addEventListener('load', function (ev)
{
// Download main.dart.js // Download main.dart.js
_flutter.loader.loadEntrypoint({ _flutter.loader.loadEntrypoint({
serviceWorker: { serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion, serviceWorkerVersion: serviceWorkerVersion,
}, },
onEntrypointLoaded: function(engineInitializer) { onEntrypointLoaded: function (engineInitializer)
engineInitializer.initializeEngine().then(function(appRunner) { {
engineInitializer.initializeEngine().then(function (appRunner)
{
appRunner.runApp(); appRunner.runApp();
}); });
} }
@@ -56,4 +61,5 @@
}); });
</script> </script>
</body> </body>
</html> </html>

View File

@@ -1,35 +1,28 @@
{ {
"name": "iiitb_menu", "name": "IIITB Menu",
"short_name": "iiitb_menu", "short_name": "IIITB Menu",
"start_url": ".", "start_url": ".",
"display": "standalone", "display": "standalone",
"background_color": "#0175C2", "background_color": "#0175C2",
"theme_color": "#0175C2", "theme_color": "#0175C2",
"description": "A new Flutter project.", "description": "Bi-Weekly Menu.",
"orientation": "portrait-primary", "orientation": "portrait-primary",
"prefer_related_applications": false, "prefer_related_applications": false,
"icons": [ "icons": [
{ {
"src": "icons/Icon-192.png", "src": "icons/favicon-16x16.png",
"sizes": "192x192", "sizes": "16x16",
"type": "image/png" "type": "image/png"
}, },
{ {
"src": "icons/Icon-512.png", "src": "icons/favicon-32x32.png",
"sizes": "512x512", "sizes": "32x32",
"type": "image/png" "type": "image/png"
}, },
{ {
"src": "icons/Icon-maskable-192.png", "src": "icons/favicon-96x96.png",
"sizes": "192x192", "sizes": "96x96",
"type": "image/png", "type": "image/png"
"purpose": "maskable"
},
{
"src": "icons/Icon-maskable-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
} }
] ]
} }