showPopup method

dynamic showPopup(
  1. dynamic context,
  2. dynamic w,
  3. dynamic h,
  4. dynamic actions,
  5. dynamic needSearch,
)

Implementation

showPopup(context, w, h, actions, needSearch) {
  myLogAll('showPopup');
  removeOverlay();
  overlayEntry = OverlayEntry(builder: (BuildContext context) {
    return MyPopup(
        {gWidget: w, gHeight: h, gActions: actions, gSearch: needSearch});
    /*return new Positioned(
        top: MediaQuery.of(context).size.height * 0.7,
        child: buildDraggable(context, MyPopup({gWidget: w, gHeight: h})));*/
  });
  Overlay.of(context).insert(overlayEntry!);
  myNotifyListeners();
}