pikaju / flutter-maps-launcher

Simple Flutter package to open the maps application (or browser) on all platforms.
https://pub.dev/packages/maps_launcher
MIT License
60 stars 43 forks source link

Unable to build for web #6

Closed marwfair closed 3 years ago

marwfair commented 4 years ago

With version 1.2.2+1, I'm unable to build the app for web. I am getting this error:

import 'package:maps_launcher/maps_launcher_web.dart'; ^ lib/generated_plugin_registrant.dart:22:54: Error: Getter not found: 'MapsLauncherWeb'. MapsLauncherWeb.registerWith(registry.registrarFor(MapsLauncherWeb));

1.2.2 worked fine for web, just not for iOS.

Poujhit commented 4 years ago

I too have the same problem.

jrmarkham commented 4 years ago

Same problem too

vadrian89 commented 4 years ago

Hello, I have the same issue.

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 1.21.0-9.2.pre, on Mac OS X 10.15.6 19G2021, locale
    ro-RO)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.49.0)
[✓] Connected device (3 available
RobProductions commented 3 years ago

Same issue is happening to me, the plugin registrant is showing an error for a web class saying it doesn't exist. Builds fine on iOS and Android.

DanielCardonaRojas commented 3 years ago

Same here, look like this isn't conforming to Platform Interface:

https://medium.com/flutter/how-to-write-a-flutter-web-plugin-part-2-afdddb69ece6

basel-sader commented 3 years ago

Facing same problem, can't build for web.

Anybody found a solution?

MattyBoy4444 commented 3 years ago

The PR #8 has the fix. I am just set my pubspec.yaml to use the PR git repository.

pikaju commented 3 years ago

I merged #8 and published a new version: 1.2.2+2. Sorry for the wait, everyone.