Skip to content

Add support for Macros #168

@robert-northmind

Description

@robert-northmind

Is your feature request related to a problem? Please describe.
Currently widget driver is relying on build_runner and part-files to generate the TestDriver and DriverProvider.
This might become a problem in the future since the dart team have plans to deprecate and remove the support for part-files.
See here: https://github.com/dart-lang/language/blob/main/working/augmentation-libraries/feature-specification.md

It seems the future is to use the new augmentation feature and macros. This is still in beta but we should consider investing time soonish to learn about this and start adding support for macros as an alternative for BuildRunner and part-files.

Describe the solution you'd like
The long-term solution would be to support macros instead of build_runner.

Describe alternatives you've considered
I think there is no alternative. But currently the macro and augmentation is not part of stable dart. But soon they probably will be.

Additional context
Maybe a first step is to just create a poc branch and see how macros and augmentation work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions