[UI-Kit] Disable attachment download dialog pop using back button

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-03-02 14:39:02 +05:30
parent 2d5384e48b
commit d2e270e356
@@ -207,7 +207,9 @@ class AttachmentActionsModal extends StatelessWidget {
ValueNotifier<_DownloadProgress> progressNotifier,
) {
final theme = StreamChatTheme.of(context);
return ValueListenableBuilder(
return WillPopScope(
onWillPop: () => Future.value(false),
child: ValueListenableBuilder(
valueListenable: progressNotifier,
builder: (_, _DownloadProgress progress, __) {
final value = progress.toProgressIndicatorValue;
@@ -266,6 +268,7 @@ class AttachmentActionsModal extends StatelessWidget {
),
);
},
),
);
}