fix modals using nearest navigator
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user