function_widget 0.0.1-dev.1 copy "function_widget: ^0.0.1-dev.1" to clipboard
function_widget: ^0.0.1-dev.1 copied to clipboard

discontinued

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_widget

This 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.1

Alternatively, 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';
1
likes
40
points
28
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that provides a macro to generate StatelessWidget from a function, reducing boilerplate code.

Repository (GitHub)

Topics

#widget #macros #code-generation #flutter

License

MIT (license)

Dependencies

flutter, macros

More

Packages that depend on function_widget