mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-24 12:32:40 +08:00
fix member list jump
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -63,7 +63,7 @@ class _HorizontalMemberPageState extends State<HorizontalMemberPage> {
|
|||||||
final index = res.response?.indexWhere((e) => e.bvid == _bvid) ?? -1;
|
final index = res.response?.indexWhere((e) => e.bvid == _bvid) ?? -1;
|
||||||
if (index != -1) {
|
if (index != -1) {
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||||
_controller.scrollController.jumpTo(100.0 * index + 40);
|
_controller.scrollController.jumpTo(100.0 * index);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user