function_widget 0.0.1-dev.1
function_widget: ^0.0.1-dev.1 copied to clipboard
A Flutter package that provides a macro to generate StatelessWidget from a function, reducing boilerplate code.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add function_widgetThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
function_widget: ^0.0.1-dev.1Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:function_widget/function_widget.dart';