functional_widget icon indicating copy to clipboard operation
functional_widget copied to clipboard

A code generator to write widgets as function without loosing the benefits of classes.

Results 10 functional_widget issues
Sort by recently updated
recently updated
newest added

**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...

bug

Example: ```dart @widget Widget foo(String foo) => Text(foo); ``` functional_widget generates a widget class for this, but it doesn't compile because the field name in the generated class shadows the...

bug

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...

enhancement

**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...

enhancement

Hello 😄 there is annotation to make `SingleChildStatelessWidget` widgets? I haven't found it and it would be a good idea to use it with the `nested` package. Thanks

enhancement

Linting warning on generated consumer widgets. class App extends ConsumerWidget { const App({Key? key}) : super(key: key); @override Widget build( BuildContext **_context,** WidgetRef **_ref,** ) => app(_ref); } Should have...

bug

When to start project, got this error. Because flutter_application_1 depends on functional_widget_annotation >=0.0.3 =2.0.0-dev.68.0

enhancement