fix modals using nearest navigator

This commit is contained in:
Salvatore Giordano
2021-06-29 13:31:31 +02:00
parent d93d93aeed
commit 97914bfd15
2 changed files with 3 additions and 0 deletions
@@ -266,6 +266,7 @@ class _GroupChatDetailsScreenState extends State<GroupChatDetailsScreen> {
void _showErrorAlert() {
showModalBottomSheet(
useRootNavigator: false,
backgroundColor: StreamChatTheme.of(context).colorTheme.white,
context: context,
shape: RoundedRectangleBorder(
@@ -690,6 +690,7 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
var channel = StreamChannel.of(context).channel;
showDialog(
useRootNavigator: false,
context: context,
barrierColor: StreamChatTheme.of(context).colorTheme.overlay,
builder: (context) {
@@ -851,6 +852,7 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
final color = StreamChatTheme.of(context).colorTheme.white;
showModalBottomSheet(
useRootNavigator: false,
context: context,
clipBehavior: Clip.antiAlias,
isScrollControlled: true,