refa: settings model (#1773)

* opt: MediaQuery

* refa: settings model
This commit is contained in:
My-Responsitories
2025-12-10 16:41:31 +08:00
committed by GitHub
parent b12bdf2eb8
commit 890dc58dc3
13 changed files with 406 additions and 579 deletions

View File

@@ -14,7 +14,7 @@ void imageSaveDialog({
dynamic aid,
String? bvid,
}) {
final double imgWidth = Get.mediaQuery.size.shortestSide - 8 * 2;
final double imgWidth = MediaQuery.sizeOf(Get.context!).shortestSide - 8 * 2;
SmartDialog.show(
animationType: SmartAnimationType.centerScale_otherSlide,
builder: (context) {