mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: show listsheet item cover
This commit is contained in:
@@ -71,8 +71,8 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
fabAnimationCtr.dispose();
|
||||
_videoReplyController.scrollController.removeListener(() {});
|
||||
fabAnimationCtr.dispose();
|
||||
// _videoReplyController.scrollController.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
@@ -92,9 +92,13 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
|
||||
final ScrollDirection direction =
|
||||
_videoReplyController.scrollController.position.userScrollDirection;
|
||||
if (direction == ScrollDirection.forward) {
|
||||
_showFab();
|
||||
if (mounted) {
|
||||
_showFab();
|
||||
}
|
||||
} else if (direction == ScrollDirection.reverse) {
|
||||
_hideFab();
|
||||
if (mounted) {
|
||||
_hideFab();
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user