functional_widget 0.1.0 copy "functional_widget: ^0.1.0" to clipboard
functional_widget: ^0.1.0 copied to clipboard

outdated

A code generator that generates widget classes from their implementation as a function.

example/lib/main.dart

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

part 'main.g.dart';

void main() => runApp(Foo(42));

/// Hello World
/// World
@widget
Widget foo(BuildContext context, int value) {
  return Container();
}
256
likes
0
pub points
78%
popularity

Publisher

verified publisherdash-overflow.net

A code generator that generates widget classes from their implementation as a function.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, build, build_config, code_builder, functional_widget_annotation, source_gen

More

Packages that depend on functional_widget