mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
@@ -18,7 +18,7 @@
|
||||
import 'dart:collection' show HashSet;
|
||||
import 'dart:math' as math;
|
||||
|
||||
import 'package:PiliPlus/common/constants.dart' show StyleString;
|
||||
import 'package:PiliPlus/common/style.dart';
|
||||
import 'package:PiliPlus/common/widgets/image_grid/image_grid_view.dart'
|
||||
show ImageModel;
|
||||
import 'package:flutter/foundation.dart' show kDebugMode;
|
||||
@@ -505,7 +505,7 @@ class ImageGridRenderObjectElement extends RenderObjectElement {
|
||||
if (width != 1) {
|
||||
imageWidth = math.min(imageWidth, width.toDouble());
|
||||
}
|
||||
imageHeight = imageWidth * math.min(ratioHW, StyleString.imgMaxRatio);
|
||||
imageHeight = imageWidth * math.min(ratioHW, Style.imgMaxRatio);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user