show modal using the nearest navigator
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -53,12 +53,6 @@ flutter:
|
||||
- animations/
|
||||
uses-material-design: true
|
||||
|
||||
dependency_overrides:
|
||||
stream_chat:
|
||||
path: ../stream_chat
|
||||
stream_chat_flutter_core:
|
||||
path: ../stream_chat_flutter_core
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
|
||||
@@ -18,10 +18,6 @@ dependencies:
|
||||
rxdart: ^0.27.0
|
||||
stream_chat: ^2.0.0-nullsafety.6
|
||||
|
||||
dependency_overrides:
|
||||
stream_chat:
|
||||
path: ../stream_chat
|
||||
|
||||
dev_dependencies:
|
||||
fake_async: ^1.2.0
|
||||
flutter_test:
|
||||
|
||||
@@ -20,10 +20,6 @@ dependencies:
|
||||
sqlite3_flutter_libs: ^0.5.0
|
||||
stream_chat: ^2.0.0-nullsafety.5
|
||||
|
||||
dependency_overrides:
|
||||
stream_chat:
|
||||
path: ../stream_chat
|
||||
|
||||
dev_dependencies:
|
||||
build_runner: ^2.0.1
|
||||
mocktail: ^0.1.1
|
||||
|
||||
Reference in New Issue
Block a user