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.

auto_route support & class decorators #119

Description

@Nolat

Is your feature request related to a problem? Please describe.
I'm using the auto_route package, which needs to add an @RoutePage() decorator above the classes. If I try to add it above a functional widget, the generation doesn't work.

@RoutePage()
class SplashPage extends HookWidget {
  const SplashPage();

  @override
  Widget build(BuildContext context) {
    return Scaffold();
  }
}

Describe the solution you'd like
We need a way to add a decorator to the generated class.

@FunctionalWidget(
  decorators: [
    RoutePage
  ],
)
Widget splashPage() {
  return Scaffold();
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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