Skip to content

Commit

Permalink
Add pwa support
Browse files Browse the repository at this point in the history
  • Loading branch information
vyPal committed May 11, 2024
1 parent 49b83a3 commit 2f7cb1c
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 27 deletions.
9 changes: 6 additions & 3 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,13 @@ class MyApp extends StatelessWidget {
static FirebaseAnalyticsObserver observer =
FirebaseAnalyticsObserver(analytics: analytics);
static final _defaultLightColorScheme =
ColorScheme.fromSwatch(primarySwatch: Colors.blue);
ThemeData(colorSchemeSeed: const Color.fromARGB(255, 105, 140, 243))
.colorScheme;

static final _defaultDarkColorScheme = ColorScheme.fromSwatch(
primarySwatch: Colors.blue, brightness: Brightness.dark);
static final _defaultDarkColorScheme = ThemeData(
colorSchemeSeed: const Color.fromARGB(255, 105, 140, 243),
brightness: Brightness.dark)
.colorScheme;

// This widget is the root of your application.
@override
Expand Down
Binary file modified web/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified web/icons/Icon-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed web/icons/Icon-512.png
Binary file not shown.
Binary file removed web/icons/Icon-maskable-192.png
Binary file not shown.
Binary file removed web/icons/Icon-maskable-512.png
Binary file not shown.
6 changes: 3 additions & 3 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@

<meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta name="description" content="A new Flutter project.">
<meta name="description" content="The modern Edupage client">

<!-- iOS meta tags & icons -->
<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-title" content="eduapge2">
<meta name="apple-mobile-web-app-title" content="EduPage2">
<link rel="apple-touch-icon" href="icons/Icon-192.png">

<!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png"/>

<title>eduapge2</title>
<title>EduPage2</title>
<link rel="manifest" href="manifest.json">

<script>
Expand Down
25 changes: 4 additions & 21 deletions web/manifest.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,18 @@
{
"name": "eduapge2",
"short_name": "eduapge2",
"name": "EduPage2",
"short_name": "EduPage2",
"start_url": ".",
"display": "standalone",
"background_color": "#0175C2",
"theme_color": "#0175C2",
"description": "A new Flutter project.",
"theme_color": "#698cf3",
"description": "The modern Edupage client",
"orientation": "portrait-primary",
"prefer_related_applications": false,
"icons": [
{
"src": "icons/Icon-192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "icons/Icon-512.png",
"sizes": "512x512",
"type": "image/png"
},
{
"src": "icons/Icon-maskable-192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "icons/Icon-maskable-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
]
}

0 comments on commit 2f7cb1c

Please sign in to comment.