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
@@ -30,6 +30,7 @@ Future<bool?> showConfirmationDialog(
}) {
final chatThemeData = StreamChatTheme.of(context);
return showModalBottomSheet(
useRootNavigator: false,
backgroundColor: chatThemeData.colorTheme.white,
context: context,
shape: const RoundedRectangleBorder(
@@ -114,6 +115,7 @@ Future<bool?> showInfoDialog(
}) {
final chatThemeData = StreamChatTheme.of(context);
return showModalBottomSheet(
useRootNavigator: false,
backgroundColor: theme?.colorTheme.white ?? chatThemeData.colorTheme.white,
context: context,
shape: const RoundedRectangleBorder(