Skip to content

Commit

Permalink
improve seo
Browse files Browse the repository at this point in the history
  • Loading branch information
mytja committed Feb 4, 2024
1 parent 0c8179e commit a6f5bde
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
3 changes: 2 additions & 1 deletion tarok/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ void main() async {

runApp(
GetMaterialApp(
title: "palcka".tr,
title:
"Tarok Palčka", // this doesn't seem to work with .tr; EDIT: yeah, I don't know why it would work. :sweat_smile:
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
Expand Down
15 changes: 9 additions & 6 deletions tarok/web/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html>

<head>
<!--
If you are serving your web app in a path other than the root, change the
Expand All @@ -18,7 +19,7 @@

<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="Odprtokodni program za igro slovenskega taroka na telefonih in računalnikih.">

<!-- iOS meta tags & icons -->
<meta name="apple-mobile-web-app-capable" content="yes">
Expand All @@ -27,7 +28,7 @@
<link rel="apple-touch-icon" href="icons/Icon-192.png">

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

<title>Palčka</title>
<link rel="manifest" href="manifest.json">
Expand All @@ -40,21 +41,23 @@
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head>

<body>
<script>
window.addEventListener('load', function(ev) {
window.addEventListener('load', function (ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(function(appRunner) {
onEntrypointLoaded: function (engineInitializer) {
engineInitializer.initializeEngine().then(function (appRunner) {
appRunner.runApp();
});
}
});
});
</script>
</body>
</html>

</html>
2 changes: 1 addition & 1 deletion tarok/web/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"display": "standalone",
"background_color": "#0175C2",
"theme_color": "#0175C2",
"description": "Program za igro taroka.",
"description": "Odprtokodni program za igro slovenskega taroka na telefonih in računalnikih.",
"orientation": "portrait-primary",
"prefer_related_applications": false,
"icons": [
Expand Down

0 comments on commit a6f5bde

Please sign in to comment.