mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: image loading progress
This commit is contained in:
@@ -155,6 +155,8 @@ class _ImagePreviewState extends State<ImagePreview>
|
|||||||
widget.imgList![index],
|
widget.imgList![index],
|
||||||
fit: BoxFit.contain,
|
fit: BoxFit.contain,
|
||||||
mode: ExtendedImageMode.gesture,
|
mode: ExtendedImageMode.gesture,
|
||||||
|
handleLoadingProgress: true,
|
||||||
|
clearMemoryCacheWhenDispose: true,
|
||||||
onDoubleTap: (ExtendedImageGestureState state) {
|
onDoubleTap: (ExtendedImageGestureState state) {
|
||||||
final Offset? pointerDownPosition =
|
final Offset? pointerDownPosition =
|
||||||
state.pointerDownPosition;
|
state.pointerDownPosition;
|
||||||
@@ -214,9 +216,7 @@ class _ImagePreviewState extends State<ImagePreview>
|
|||||||
SizedBox(
|
SizedBox(
|
||||||
width: 150.0,
|
width: 150.0,
|
||||||
child: LinearProgressIndicator(
|
child: LinearProgressIndicator(
|
||||||
value: progress,
|
value: progress ?? 0),
|
||||||
color: Colors.white,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
// const SizedBox(height: 10.0),
|
// const SizedBox(height: 10.0),
|
||||||
// Text('${((progress ?? 0.0) * 100).toInt()}%',),
|
// Text('${((progress ?? 0.0) * 100).toInt()}%',),
|
||||||
|
|||||||
Reference in New Issue
Block a user