functional_widget_annotation 0.10.0 copy "functional_widget_annotation: ^0.10.0" to clipboard
functional_widget_annotation: ^0.10.0 copied to clipboard

Annotations for function_widget_generator used to generate widget classes from a function

example/lib/main.dart

import 'package:functional_widget_annotation/functional_widget_annotation.dart';
import 'package:flutter/widgets.dart';

part 'main.g.dart';

// we create a widget using a widget decorated by `@swidget`
@swidget
Widget foo() {
  return Container();
}

void main() => runApp(
      // we use the generated class
      const Foo(),
    );
17
likes
160
points
4.39k
downloads

Publisher

verified publisherdash-overflow.net

Weekly Downloads

Annotations for function_widget_generator used to generate widget classes from a function

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on functional_widget_annotation