Closed pishguy closed 5 years ago
import 'package:functional_widget_annotation/functional_widget_annotation.dart' as fn;
@fn.widget
Widget foo() {}
or:
import 'package:functional_widget_annotation/functional_widget_annotation.dart' show swidget;
@swidget
Widget foo() {}
@rrousselGit Thanks, that fixed the same problem for me. Just curious, why is that necessary in this case? Is that true whenever the context is a StatefulWidget? And now I'm wondering whether I should just always use @fn.widget
, or if there's a downside other than the extra characters?