TF-4075 Use Scrollable.ensureVisible replace for animateTo
(cherry picked from commit aa187c17f7952a66d237abbe1f66efb2f01fd298)
This commit is contained in:
+7
-3
@@ -22,9 +22,13 @@ extension HandleOpenAttachmentListExtension on SingleEmailController {
|
||||
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (PlatformInfo.isWeb && attachmentListKey != null) {
|
||||
scrollController.scrollToWidgetTop(
|
||||
key: attachmentListKey!,
|
||||
padding: 70,
|
||||
final context = attachmentListKey!.currentContext;
|
||||
if (context == null) return;
|
||||
|
||||
Scrollable.ensureVisible(
|
||||
context,
|
||||
duration: const Duration(milliseconds: 500),
|
||||
curve: Curves.easeInOut,
|
||||
);
|
||||
} else {
|
||||
final emailContentHeight =
|
||||
|
||||
Reference in New Issue
Block a user