fleaflet / flutter_map

A versatile mapping package for Flutter. Simple and easy to learn, yet completely customizable and configurable, it's the best choice for mapping in your Flutter app.
https://pub.dev/packages/flutter_map
BSD 3-Clause "New" or "Revised" License
2.76k stars 863 forks source link

[BUG] Migrate from deprecated "serviceWorkerVersion" in example web app #1962

Closed alestiago closed 2 months ago

alestiago commented 2 months ago

What is the bug?

When running the example on Chrome, a warning is thrown regarding usage of deprecated "serviceWorkerVersion" variable.

How can we reproduce it?

  1. Run the example on Flutter 3.24.0 with Chrome as target:
flutter run -d chrome
  1. See the warning:
    Warning: In index.html:39: Local variable for "serviceWorkerVersion" is deprecated. Use "{{flutter_service_worker_version}}" template
    token instead. See https://docs.flutter.dev/platform-integration/web/initialization for more details.
    Warning: In index.html:49: "FlutterLoader.loadEntrypoint" is deprecated. Use "FlutterLoader.load" instead. See
    https://docs.flutter.dev/platform-integration/web/initialization for more details.

Do you have a potential solution?

Follow migration details: https://docs.flutter.dev/platform-integration/web/initialization

Platforms

Web

Severity

Minimum: Allows normal functioning