diff --git a/lib/main.dart b/lib/main.dart index 34e0a50..1beab70 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,6 +1,9 @@ +import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; +import 'package:flutter_web_plugins/flutter_web_plugins.dart'; import 'package:mchess/chess/chess_app.dart'; void main() { + if (kIsWeb) setUrlStrategy(PathUrlStrategy()); runApp(const ChessApp()); } diff --git a/pubspec.lock b/pubspec.lock index 5ed668d..580d0a8 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -108,7 +108,7 @@ packages: source: sdk version: "0.0.0" flutter_web_plugins: - dependency: transitive + dependency: "direct main" description: flutter source: sdk version: "0.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index 78cb013..6cb4fb0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -28,6 +28,8 @@ environment: # the latest version available on pub.dev. To see which dependencies have newer # versions available, run `flutter pub outdated`. dependencies: + flutter_web_plugins: + sdk: flutter flutter_svg: flutter: sdk: flutter diff --git a/web/favicon.png b/web/favicon.png index 8aaa46a..e2e3782 100644 Binary files a/web/favicon.png and b/web/favicon.png differ diff --git a/web/index.html b/web/index.html index 662b3b6..4bca956 100644 --- a/web/index.html +++ b/web/index.html @@ -14,7 +14,7 @@ This is a placeholder for base href that will be replaced by the value of the `--base-href` argument provided to `flutter build`. --> - +