fix modals using nearest navigator
This commit is contained in:
@@ -266,6 +266,7 @@ class _GroupChatDetailsScreenState extends State<GroupChatDetailsScreen> {
|
|||||||
|
|
||||||
void _showErrorAlert() {
|
void _showErrorAlert() {
|
||||||
showModalBottomSheet(
|
showModalBottomSheet(
|
||||||
|
useRootNavigator: false,
|
||||||
backgroundColor: StreamChatTheme.of(context).colorTheme.white,
|
backgroundColor: StreamChatTheme.of(context).colorTheme.white,
|
||||||
context: context,
|
context: context,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
|
|||||||
@@ -690,6 +690,7 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
|
|||||||
var channel = StreamChannel.of(context).channel;
|
var channel = StreamChannel.of(context).channel;
|
||||||
|
|
||||||
showDialog(
|
showDialog(
|
||||||
|
useRootNavigator: false,
|
||||||
context: context,
|
context: context,
|
||||||
barrierColor: StreamChatTheme.of(context).colorTheme.overlay,
|
barrierColor: StreamChatTheme.of(context).colorTheme.overlay,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
@@ -851,6 +852,7 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
|
|||||||
final color = StreamChatTheme.of(context).colorTheme.white;
|
final color = StreamChatTheme.of(context).colorTheme.white;
|
||||||
|
|
||||||
showModalBottomSheet(
|
showModalBottomSheet(
|
||||||
|
useRootNavigator: false,
|
||||||
context: context,
|
context: context,
|
||||||
clipBehavior: Clip.antiAlias,
|
clipBehavior: Clip.antiAlias,
|
||||||
isScrollControlled: true,
|
isScrollControlled: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user