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
It's not sustainable for the flutter tool to support all the commands that all developers collectively desire. It's much more sustainable to support an extensibility model where the tool itself can be extended by adding in "tools plugins".
I'd like to see some specs that would allow me to do code generation before build starts.
My proposal is adding a line to pubspec, something like this:
I get the feeling that this pub ... watch thing is popular, although very new to me. And my guess is that it could solve the problem with first class support to both build_runner and watch so they can integrate seamlessly with flutter run
ref #14703.
Crazy question -- it seems like a lot of uses of annotations could be support be the language itself, rather that making dependencies on specific build tool (e.g. annotations macros that take a class and return a class, or take a function and return a function). Any plans to support this in the future?
@stuz5000 While I completely agree with you, I think that's probably a better issue for the dart-lang/lang repo, where work for Dart itself (not to be confused with Flutter, that uses Dart) is done.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
fmatosqg commentedon Apr 24, 2018
I'd like to see some specs that would allow me to do code generation before build starts.
My proposal is adding a line to pubspec, something like this:
and preferrably extensible to packages in some shape or form, but I'd be happy to develop based on the above spec to kick it off.
fmatosqg commentedon Apr 25, 2018
I get the feeling that this
pub ... watchthing is popular, although very new to me. And my guess is that it could solve the problem with first class support to bothbuild_runnerandwatchso they can integrate seamlessly withflutter runref #14703.
eseidelGoogle commentedon Dec 8, 2018
Related: #16603 #15545 #20865
tvolkert commentedon Dec 19, 2018
Closing as a dup of #25377
allComputableThings commentedon Sep 21, 2019
Crazy question -- it seems like a lot of uses of annotations could be support be the language itself, rather that making dependencies on specific build tool (e.g. annotations macros that take a class and return a class, or take a function and return a function). Any plans to support this in the future?
Levi-Lesches commentedon Feb 5, 2020
@stuz5000 While I completely agree with you, I think that's probably a better issue for the
dart-lang/langrepo, where work for Dart itself (not to be confused with Flutter, that uses Dart) is done.github-actions commentedon Aug 23, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.