tblClassicDidResize method

void tblClassicDidResize(
  1. String placement,
  2. double height
)

Implementation

void tblClassicDidResize(String placement, double height) {
  final screenSize = DeviceDescriptor.getScreenSize();
  if (screenSize == null || screenSize.isEmpty) {
    return;
  }
  double maxHeight = screenSize[1];
  if (maxHeight < height) {
    height = maxHeight;
  }

  if (_webViewHeight != height) {
    setState(() {
      _webViewHeight = height;
      widget._tblClassicListener.didResize(placement, _webViewHeight);
    });
  }
}