Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-26 20:35:04 +08:00
parent 20893ef65f
commit e5301c3cf8
3 changed files with 46 additions and 42 deletions

View File

@@ -58,11 +58,11 @@ Widget imageView(
} else if (picArr.length == 2) {
imageWidth = imageHeight = 2 * imageWidth;
}
late final int row = picArr.length == 4 ? 2 : 3;
BorderRadius borderRadius(index) {
if (picArr.length == 1) {
return StyleString.mdRadius;
}
final int row = picArr.length == 4 ? 2 : 3;
return BorderRadius.only(
topLeft: index - row >= 0 ||
((index - 1) >= 0 && (index - 1) % row < index % row)