web端调用await LCUser.loginByEmail(userEmail, password)时报异常
可以参考https://stackoverflow.com/questions/58459483/unsupported-operation-platform-operatingsystem
No, the FlutterFire group of plugins is in no way supported on Flutter Web. They rely on platform-specific APIs and are currently only implemented for Android and iOS.
目前不支持 web,短期内也没有支持 web 的计划。
flutter beta版本是支持web的。报错是因为web端不支持Platform._operatingSystem,这里加个try-catch就行了
看来这里使用 Platform.isAndroid || Platform.isIOS 来判断运行环境并不合适,稍后我改一下。感谢您的反馈!
这个问题是由于为了持久化已登录用户数据,错误的判断了运行环境导致的(没想到 flutter 会在这种属性上抛异常)新版本 已经修复了这个问题。
由于我们 Flutter 用户大部分是 Android/iOS 平台,所以暂时在 Web 平台上支持有限。