mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-22 11:41:09 +08:00
mod: merge tabbar from pilipala
This commit is contained in:
@@ -5,3 +5,13 @@ extension ImageExtension on num {
|
||||
return (this * MediaQuery.of(context).devicePixelRatio).round();
|
||||
}
|
||||
}
|
||||
|
||||
extension ScrollControllerExt on ScrollController {
|
||||
void animToTop() {
|
||||
animateTo(
|
||||
0,
|
||||
duration: const Duration(milliseconds: 500),
|
||||
curve: Curves.ease,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user