measurer 2.1.1 copy "measurer: ^2.1.1" to clipboard
measurer: ^2.1.1 copied to clipboard

A widget that measure the size of its child.

measurer #

A widget that measure the size of its child.

Quickstart #

@override
Widget build(BuildContext context) {
    return Measurer(
        onMeasure: (size,constraints) {
            print('Child new size: $size');
        },
        child: Child(),
    );
}

Usage #

onMeasure #

A callback to that is called each time the layout size of the child changes.

onPaintBoundsChanged #

A callback to that is called each time the painting bound size (an absolute rectangle that contains all the pixels painted by the child) of the child changes.

7
likes
100
pub points
75%
popularity

Publisher

unverified uploader

A widget that measure the size of its child.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on measurer