listenable_tools 1.0.6 copy "listenable_tools: ^1.0.6" to clipboard
listenable_tools: ^1.0.6 copied to clipboard

outdated

Widgets to work with Listenable

widget_tools #

A set of useful widget tools that are missing from the flutter framework.

[ListenableBuilder] #

The [ListenableBuilder] widget allows for grouping of multiple slivers together such that they can be returned as a single widget. For instance when one wants to wrap a few slivers with some padding or an inherited widget.

Example #

class TestWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final focusNode = FocusNode();
    return ListenableBuilder(
        listenable: focusNode,  // required
        builder: (context, focusNode, child) { // required
            return ElevatedButton(
                onPressed: () {
                    print('submitted');
                },
                child: Text('Submit'),
            );
        },
    );
  }
}
0
likes
0
points
208
downloads

Publisher

unverified uploader

Weekly Downloads

Widgets to work with Listenable

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on listenable_tools