Skip to content

PasteFerry (隔空贴): clipboard and file sync across macOS, Windows and Linux. Direct-first, end-to-end encrypted. Optional official access: no server to host. Independent self-hosting remains available.

fix(ui): keep a separate scroll position for received and sent lists

baiyuzec84249e55d62
diff --git a/ui/lib/pages/send_page.dart b/ui/lib/pages/send_page.dart
index e0269dd..fc7b0e6 100644
--- a/ui/lib/pages/send_page.dart
+++ b/ui/lib/pages/send_page.dart
@@ -523,6 +523,8 @@ class _TransferList extends StatelessWidget {
style: context.text.bodySmall),
)
: ListView.builder(
+ // 收到的、发出的各自记住滚动位置,切换时不沿用另一边的
+ key: PageStorageKey(direction),
padding: const EdgeInsets.fromLTRB(Insets.lg, Insets.sm, Insets.lg, Insets.xl),
itemCount: list.length,
itemBuilder: (context, i) => _TransferRow(key: ValueKey(list[i].id), transfer: list[i]),