v1.0.0
widget_size
एक विजेट जो बिल्ड करने और विजेट ट्री में जोड़ने के बाद इसका आकार गणना करता है
38लाइक 89230-दिन डाउनलोड150Pub अंक
AndroidiOSWebmacOSWindowsLinux
एक विजेट जो बिल्ड करने और विजेट ट्री में जोड़ने के बाद इसका आकार गणना करता है
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
A widget to calculate it's size after being built and attached to a widget tree
https://raw.githubusercontent.com/javaherisaber/widget_size/HEAD/demo.gif
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,
),
)