Closed blackshot closed 2 years ago
I just solved it changing flutter create
's default sdk environment in pubspec.yaml from
environment:
sdk: ">=2.7.0 <3.0.0"
to
environment:
sdk: ^2.12.0
As shown in the example from 'functional_widget package.
This error is not documented and i don't understand why happened so i cannot document it. it would be nice if @rrousselGit could do it.
Sorry for the late reply
Honestly I don't quite know how you ended up with this error. It may have been caused by a bugged version of a transitive dependency
I tested the same code, there is no way to run.
I tested the same code, there is no way to run.
thats weird because i ran it just changing the sdk version.
I'll close this since it was resolved
Describe the bug the generator outputs:
it seems that is throwing this error, but i don't see why. https://github.com/rrousselGit/functional_widget/blob/4ffbf96c4298531e570f42881b1b680f24f47d47/packages/functional_widget/lib/function_to_widget_class.dart#L61-L70
To Reproduce I don't know, i just wrote the functional widget as the documentation says but the generator doesn't work
Expected behavior generate main.g.dart
Extra info main.dart (the only file is a simple counter app)
Dart version:
Dart SDK version: 2.12.2 (stable) (Wed Mar 17 10:30:20 2021 +0100) on "windows_x64"
Flutter doctorpubspec