stackWidget method

Widget stackWidget()

Implementation

Widget stackWidget() {
  if(_currentSeconds == 0) {
    isLoaded = true;
    ImpressionApi().send(adResponse?.adRenderURL);
  }
  return Stack(
    children: <Widget>[
      buildBody(adResponse!),
      buttonsWidget(),
      if (widget.callbackData.showConsent)
        PointerInterceptor(
          child: Container(height: height, width: width, color: Colors.red, child: ConsentWidget1(width: width, height: height,adUnitId: adResponse?.adUnit ?? '', callback: myCallbackFunction,),)
        ),
    ],
  );
}