resizeArea method

void resizeArea(
  1. Size size
)

改变视图尺寸后调用,比如全屏

Implementation

void resizeArea(Size size) {
  FlutterDanmakuConfig.areaSize = size;
  FlutterDanmakuConfig.areaOfChildOffsetY =
      FlutterDanmakuConfig.getAreaOfChildOffsetY();
  _trackManager.recountTrackOffset(_bulletManager.bulletsMap);
  _trackManager.resetBottomBullets(_bulletManager.bottomBullets);
  if (FlutterDanmakuConfig.pause) {
    _renderManager.renderNextFrameRate(
        _bulletManager.bullets, _allOutLeaveCallBack);
  }
}