getWidgetHeight function

double getWidgetHeight(
  1. GlobalKey<State<StatefulWidget>> key
)

Implementation

double getWidgetHeight(GlobalKey key) {
  RenderBox box = key.currentContext!.findRenderObject() as RenderBox;
  return box.size.height;
}