utils/measure_size library

Functions

measureWidgetSize(BuildContext context, Widget child, {BoxConstraints? constraints}) Size
Utility to synchronously measure the size of a widget by building it offscreen in an Overlay. Only works for widgets with deterministic, constraint-based sizing (no async/layout dependencies).