Measurer
A widget that measure the size of its child.
Install / Use
/learn @aloisdeniel/MeasurerREADME
measurer
<p> <a href="https://pub.dartlang.org/packages/measurer"><img src="https://img.shields.io/pub/v/measurer.svg"></a> <a href="https://www.buymeacoffee.com/aloisdeniel"> <img src="https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000&style=flat"> </a> </p>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.
Related Skills
node-connect
352.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
