rm: r_upgrade

This commit is contained in:
lollipopkit
2024-05-10 12:55:32 +08:00
parent 52a9cc6852
commit ed5bcb17ed
9 changed files with 67 additions and 161 deletions

View File

@@ -43,9 +43,10 @@ final class _AutoHideState extends State<AutoHide> {
_timer = Timer.periodic(const Duration(seconds: 3), (_) {
if (_isScrolling) return;
if (!_visible) return;
if (!widget.controller.positions.any((e) => e.maxScrollExtent >= 0)) {
return;
}
final canScroll =
widget.controller.positions.any((e) => e.maxScrollExtent >= 0);
if (!canScroll) return;
setState(() {
_visible = false;
});