Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mobile][photos] return option bool from dialog fn

Priyanshu Dangare963dfc97e0b2
diff --git a/mobile/apps/photos/lib/ui/cast/pair_with_code.dart b/mobile/apps/photos/lib/ui/cast/pair_with_code.dart
index 76854916fd..e0c471d97e 100644
--- a/mobile/apps/photos/lib/ui/cast/pair_with_code.dart
+++ b/mobile/apps/photos/lib/ui/cast/pair_with_code.dart
@@ -37,11 +37,11 @@ Future<void> _pairWithCode(
await gw.publishCastPayload(code, castData, collection.id, castToken);
}
-Future<bool> showPairWithCodeSheet(
+Future<bool?> showPairWithCodeSheet(
BuildContext context,
Collection collection,
) async {
- return await showBottomSheetComponent(
+ return await showBottomSheetComponent<bool>(
context: context,
builder: (_) => _PairWithCodeSheet(collection: collection),
);