fluttercommunity / flutter_sms

A Flutter plugin to Send SMS and MMS on iOS and Android. If iMessage is enabled it will send as iMessage on iOS. This plugin must be tested on a real device on iOS. Maintainer: @rodydavis
https://fluttercommunity.github.io/flutter_sms/
MIT License
245 stars 182 forks source link

Import error #32

Closed guilhermecarvalhocarneiro closed 3 years ago

guilhermecarvalhocarneiro commented 3 years ago

I'm trying to use the package, but after configuring and importing the package when I try to run the app the message appears:

/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.0.1+2/lib/src/flutter_sms_platform.dart:3:8: Error: Not found: 'dart: html' import 'dart: html' as html;

P-B1101 commented 3 years ago

same here :|

P-B1101 commented 3 years ago

downgrade to 1.1.0 for now.

mtgperales commented 3 years ago

Still experiencing it

../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.0.1+2/lib/src/flutter_sms_platform.dart:3:8: Error: Not found: 'dart:html' import 'dart:html' as html;
../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.0.1+2/lib/src/flutter_sms_platform.dart:90:27: Error: Getter not found: 'window'. final _agent = html.window.navigator.userAgent;

Any solution aside from downgrading?

rodydavis commented 3 years ago

fixed on version 2.3.1 reopen if it is still an issue