diff --git a/lib/maps_launcher_web.dart b/lib/maps_launcher_web.dart index a41375e..9e0a039 100644 --- a/lib/maps_launcher_web.dart +++ b/lib/maps_launcher_web.dart @@ -1,11 +1,5 @@ import 'dart:async'; -// In order to *not* need this ignore, consider extracting the "web" version -// of your plugin as a separate package, instead of inlining it in the same -// package as the core of your plugin. -// ignore: avoid_web_libraries_in_flutter -import 'dart:html' as html show window; - import 'package:flutter/services.dart'; import 'package:flutter_web_plugins/flutter_web_plugins.dart'; @@ -27,8 +21,6 @@ class MapsLauncherWeb { /// https://flutter.dev/go/federated-plugins Future handleMethodCall(MethodCall call) async { switch (call.method) { - case 'getPlatformVersion': - return getPlatformVersion(); default: throw PlatformException( code: 'Unimplemented', @@ -38,9 +30,4 @@ class MapsLauncherWeb { } } - /// Returns a [String] containing the version of the platform. - Future getPlatformVersion() { - final version = html.window.navigator.userAgent; - return Future.value(version); - } }