v1.0.0
widget_size
A widget to calculate it's size after being built and attached to a widget tree
38Likes 2.3K30-day downloads150Pub points
AndroidiOSWebmacOSWindowsLinux
A widget to calculate it's size after being built and attached to a widget tree
English project snapshot. Visit GitHub for the latest content.
A widget to calculate it's size after being built and attached to a widget tree

To use this plugin, add widget_size as a dependency in your pubspec.yaml file.
dependencies:
widget_size: ^lastVersion
double _yourHeight = 50;
double _yourWidth = 50;
WidgetSize(
onChange: (Size size) {
// your Widget size available here
_yourHeight = size.height;
_yourWidth = size.width;
},
child: Container(
height: _yourHeight,
width: _yourWidth,
color: Theme.of(context).primaryColor,
),
)
Dependency list 3 items
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0Start with your use case, compare repository activity, and check the original project before adopting it.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗