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.

@cwidget not generating ConsumerWidget as expected #103

Description

@yuhao-nyc

Describe the bug
updating @swidget to @cwidget to generate a ConsumerWidget instead of StatelessWidget.

The build_runner is not generating for me for some reason. It's still StatelessWidget. Try to delete the g.dart file still getting the same StatelessWidget.

flutter_riverpod: ^0.14.0+3
functional_widget_annotation: ^0.9.0
functional_widget: ^0.9.0+1
in my local. Not sure what am I missing

To Reproduce

part 'test_widget.g.dart';

@cwidget
Widget testWidget(BuildContext context) {
return Container()
}

Expected behavior
A clear and concise description of what you expected to happen.

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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions