Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get size widget renderbox

var myChildSize = Size.zero;

Widget build(BuildContext context) {
  return ...( 
    child: MeasureSize(
      onChange: (size) {
        setState(() {
          myChildSize = size;
        });
      },
      child: ...
    ),
  );
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #size #widget #renderbox
ADD COMMENT
Topic
Name
9+4 =