You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the generator against a project with sdk constraints set to a version with nullability on (>=2.12-0-0) I expect that the generated code is compatible with the null safety features. It is not at the moment.
I created a bash script workaround that will add the @dart=2.10 comment on top.
#!/bin/bash
fluttergen
sed -i '''1 s/^/\/\/@dart=2.10\n/' lib/core/assets/assets.gen.dart
I currently don't have time to submit a PR with updated functionality, but if someone else is struggling with this, they can use the workaround until a compatible version is released.
The text was updated successfully, but these errors were encountered:
When I run the generator against a project with sdk constraints set to a version with nullability on (>=2.12-0-0) I expect that the generated code is compatible with the null safety features. It is not at the moment.
I created a bash script workaround that will add the
@dart=2.10
comment on top.I currently don't have time to submit a PR with updated functionality, but if someone else is struggling with this, they can use the workaround until a compatible version is released.
The text was updated successfully, but these errors were encountered: