flick-video-player icon indicating copy to clipboard operation
flick-video-player copied to clipboard

can't show dialog / modal when fullscreen

Open callmejm opened this issue 3 years ago • 2 comments

I wish to show a dialog / modal when press a button in fullscreen, but it wont appear inside fullscreen, it show outside of fullscreen

 showGeneralDialog(
    barrierLabel: "Barrier",
    barrierDismissible: true,
    barrierColor: Colors.black.withOpacity(0.5),
    transitionDuration: Duration(milliseconds: 300),
    context: context,
    useRootNavigator: false,
    pageBuilder: (context, animation1, animation2) {
      return Align(
        alignment: (Alignment.centerRight),
        child: Container(
          height: double.infinity,
          width: 300,
          decoration: BoxDecoration(
            color: Colors.white,
          ),
        ),
      );
    },
    transitionBuilder: (context, animation1, animation2, child) {
      return SlideTransition(
        position:
            Tween(begin: Offset(1, 0), end: Offset(0, 0))
                .animate(animation1),
        child: child,
      );
    },
  );

https://user-images.githubusercontent.com/6957533/131345938-0f782a3c-1b76-4bf4-812e-a9a202a3abee.mp4

callmejm avatar Aug 30 '21 08:08 callmejm

@callmejm we use overlay to display video in full screen and looks like flutter does not allows dialogs on overlay it’s an open issue #27725

knowsach avatar Oct 12 '21 06:10 knowsach

@callmejm you can try out this package (overlay_dialog ) to show dialogs on overlay.

knowsach avatar Oct 12 '21 06:10 knowsach

@callmejm Did you manage to resolve this? I'm facing the exact same problem in my project.

ansh-les avatar Apr 24 '23 12:04 ansh-les