Skip to content

armgit / ente

Public Imported from GitHub
0

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

Mark comment scroll animation as unawaited

Neeraj Gupta7c297f7376e5
diff --git a/mobile/apps/photos/lib/ui/social/comments_screen.dart b/mobile/apps/photos/lib/ui/social/comments_screen.dart
index 61f8f71e1e..84306a8b09 100644
--- a/mobile/apps/photos/lib/ui/social/comments_screen.dart
+++ b/mobile/apps/photos/lib/ui/social/comments_screen.dart
@@ -543,10 +543,12 @@ class _FileCommentsBottomSheetState extends State<FileCommentsBottomSheet> {
// Scroll to the newly added comment (position 0 in reversed list)
if (_scrollController.hasClients) {
- _scrollController.animateTo(
- 0,
- duration: const Duration(milliseconds: 300),
- curve: Curves.easeOut,
+ unawaited(
+ _scrollController.animateTo(
+ 0,
+ duration: const Duration(milliseconds: 300),
+ curve: Curves.easeOut,
+ ),
);
}
}