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;
|
final channel = StreamChannel.of(context).channel;
|
||||||
|
|
||||||
showDialog(
|
showDialog(
|
||||||
|
useRootNavigator: false,
|
||||||
context: context,
|
context: context,
|
||||||
barrierColor: _streamChatTheme.colorTheme.overlay,
|
barrierColor: _streamChatTheme.colorTheme.overlay,
|
||||||
builder: (context) => StreamChannel(
|
builder: (context) => StreamChannel(
|
||||||
@@ -959,6 +960,7 @@ class _MessageWidgetState extends State<MessageWidget>
|
|||||||
void _showMessageReactionsModalBottomSheet(BuildContext context) {
|
void _showMessageReactionsModalBottomSheet(BuildContext context) {
|
||||||
final channel = StreamChannel.of(context).channel;
|
final channel = StreamChannel.of(context).channel;
|
||||||
showDialog(
|
showDialog(
|
||||||
|
useRootNavigator: false,
|
||||||
context: context,
|
context: context,
|
||||||
barrierColor: _streamChatTheme.colorTheme.overlay,
|
barrierColor: _streamChatTheme.colorTheme.overlay,
|
||||||
builder: (context) => StreamChannel(
|
builder: (context) => StreamChannel(
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ Future<bool?> showConfirmationDialog(
|
|||||||
}) {
|
}) {
|
||||||
final chatThemeData = StreamChatTheme.of(context);
|
final chatThemeData = StreamChatTheme.of(context);
|
||||||
return showModalBottomSheet(
|
return showModalBottomSheet(
|
||||||
|
useRootNavigator: false,
|
||||||
backgroundColor: chatThemeData.colorTheme.white,
|
backgroundColor: chatThemeData.colorTheme.white,
|
||||||
context: context,
|
context: context,
|
||||||
shape: const RoundedRectangleBorder(
|
shape: const RoundedRectangleBorder(
|
||||||
@@ -114,6 +115,7 @@ Future<bool?> showInfoDialog(
|
|||||||
}) {
|
}) {
|
||||||
final chatThemeData = StreamChatTheme.of(context);
|
final chatThemeData = StreamChatTheme.of(context);
|
||||||
return showModalBottomSheet(
|
return showModalBottomSheet(
|
||||||
|
useRootNavigator: false,
|
||||||
backgroundColor: theme?.colorTheme.white ?? chatThemeData.colorTheme.white,
|
backgroundColor: theme?.colorTheme.white ?? chatThemeData.colorTheme.white,
|
||||||
context: context,
|
context: context,
|
||||||
shape: const RoundedRectangleBorder(
|
shape: const RoundedRectangleBorder(
|
||||||
|
|||||||
@@ -53,12 +53,6 @@ flutter:
|
|||||||
- animations/
|
- animations/
|
||||||
uses-material-design: true
|
uses-material-design: true
|
||||||
|
|
||||||
dependency_overrides:
|
|
||||||
stream_chat:
|
|
||||||
path: ../stream_chat
|
|
||||||
stream_chat_flutter_core:
|
|
||||||
path: ../stream_chat_flutter_core
|
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
|
|||||||
@@ -18,10 +18,6 @@ dependencies:
|
|||||||
rxdart: ^0.27.0
|
rxdart: ^0.27.0
|
||||||
stream_chat: ^2.0.0-nullsafety.6
|
stream_chat: ^2.0.0-nullsafety.6
|
||||||
|
|
||||||
dependency_overrides:
|
|
||||||
stream_chat:
|
|
||||||
path: ../stream_chat
|
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
fake_async: ^1.2.0
|
fake_async: ^1.2.0
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|||||||
@@ -20,10 +20,6 @@ dependencies:
|
|||||||
sqlite3_flutter_libs: ^0.5.0
|
sqlite3_flutter_libs: ^0.5.0
|
||||||
stream_chat: ^2.0.0-nullsafety.5
|
stream_chat: ^2.0.0-nullsafety.5
|
||||||
|
|
||||||
dependency_overrides:
|
|
||||||
stream_chat:
|
|
||||||
path: ../stream_chat
|
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
build_runner: ^2.0.1
|
build_runner: ^2.0.1
|
||||||
mocktail: ^0.1.1
|
mocktail: ^0.1.1
|
||||||
|
|||||||
Reference in New Issue
Block a user