opt reply item

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-10 20:17:15 +08:00
parent 3655c31a48
commit f4d3ec39a0
45 changed files with 71 additions and 74 deletions

View File

@@ -19,14 +19,14 @@ extension ImageExtension on num? {
if (this == null || this == 0) {
return null;
}
return (this! * MediaQuery.of(context).devicePixelRatio).round();
return (this! * MediaQuery.devicePixelRatioOf(context)).round();
}
}
extension ScrollControllerExt on ScrollController {
void animToTop() {
if (!hasClients) return;
if (offset >= MediaQuery.of(Get.context!).size.height * 7) {
if (offset >= Get.mediaQuery.size.height * 7) {
jumpTo(0);
} else {
animateTo(0,