Open bartonhammond opened 2 years ago
I added this to pubspec.yaml
flutter_web_plugins:
sdk: flutter
And then run flutter run -d chrome
with these results:
[sawoflutter]$ flutter run -d chrome
Running "flutter pub get" in sawoflutter... 1,310ms
Launching lib/main.dart on Chrome in debug mode...
lib/generated_plugin_registrant.dart:8:8: Error: Error when reading
'../../../.pub-cache/hosted/pub.dartlang.org/sawo-0.1.2/lib/': Is a directory
import 'package:sawo/';
^
lib/generated_plugin_registrant.dart:14:3: Error: Undefined name 'SawoPlugin'.
SawoPlugin.registerWith(registrar);
^^^^^^^^^^
Here is generated_plugin_resgistrant.dart
:
//
// Generated file. Do not edit.
//
// ignore_for_file: directives_ordering
// ignore_for_file: lines_longer_than_80_chars
import 'package:sawo/';
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
// ignore: public_member_api_docs
void registerPlugins(Registrar registrar) {
SawoPlugin.registerWith(registrar);
registrar.registerMessageHandler();
}
Steps to reproduce
1) git clone https://github.com/sawolabs/flutter-sdk.git 2) mv example ../../sawoflutter 3) cd ../../sawoflutter 3.5) flutter create . (there was no "web" directory in the example) 4) copy api/secret key after making hybrid/flutter app 5) flutter pub get 6) flutter run -d chrome
Results