show modal using the nearest navigator

This commit is contained in:
Salvatore Giordano
2021-06-22 12:54:22 +02:00
parent c4ee8d34b0
commit 00e184f422
5 changed files with 4 additions and 14 deletions
@@ -908,6 +908,7 @@ class _MessageWidgetState extends State<MessageWidget>
final channel = StreamChannel.of(context).channel;
showDialog(
useRootNavigator: false,
context: context,
barrierColor: _streamChatTheme.colorTheme.overlay,
builder: (context) => StreamChannel(
@@ -959,6 +960,7 @@ class _MessageWidgetState extends State<MessageWidget>
void _showMessageReactionsModalBottomSheet(BuildContext context) {
final channel = StreamChannel.of(context).channel;
showDialog(
useRootNavigator: false,
context: context,
barrierColor: _streamChatTheme.colorTheme.overlay,
builder: (context) => StreamChannel(