functional_widget 0.1.0 functional_widget: ^0.1.0 copied to clipboard
A code generator that generates widget classes from their implementation as a function.
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();
}