modal_bottom_sheet icon indicating copy to clipboard operation
modal_bottom_sheet copied to clipboard

[iOS] TabBar content is not tappable if using showCustomModalBottomSheet

Open tronghuy5555 opened this issue 2 years ago • 1 comments

Step to reproduce:

return showCustomModalBottomSheet(
      containerWidget: (context, animation, child) {
        return child;
      },
      context: context,
      backgroundColor: Colors.transparent,
      barrierColor: Colors.black.withOpacity(0.6),
      builder: (_) {
        return [Your screen];
      },
      settings: RouteSettings(
        name: routeName,
        arguments: arguments,
      ),
    );

In your screen

Tab( child: [your content is not tappable], ) onTap only work if you click outside your content showModalBottomSheet of Flutter works well I just found a solution: Remove Scaffold

tronghuy5555 avatar Mar 20 '23 04:03 tronghuy5555

Same issue but I don't understand about removing the scaffold. Doesn't seem to do anything (nor would you want to?)

mark8044 avatar Jun 04 '24 04:06 mark8044