Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Throw if annotation is placed on methods instead of static functions #74

@subzero911

Description

@subzero911

It simply does not working (nothing generates).

That's my steps:

  • added part 'checkup_results_screen.g.dart'; (not mentioned in docs but I guess it is needed)
  • annotated my methods with @swidget
    image
    I also tried to remove underscore and build word.
  • it's unclear from the docs if I must pass context into function or not (I tried both)
  • run the build_runner

My pubspec:
image
I also tried to put functional_widget into dev_dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions