mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: image preview
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -450,16 +450,24 @@ class _InteractiveviewerGalleryState extends State<InteractiveviewerGallery>
|
|||||||
fadeInDuration: const Duration(milliseconds: 0),
|
fadeInDuration: const Duration(milliseconds: 0),
|
||||||
fadeOutDuration: const Duration(milliseconds: 0),
|
fadeOutDuration: const Duration(milliseconds: 0),
|
||||||
imageUrl: _getActualUrl(index),
|
imageUrl: _getActualUrl(index),
|
||||||
// fit: BoxFit.contain,
|
placeholderFadeInDuration: const Duration(milliseconds: 0),
|
||||||
progressIndicatorBuilder: (context, url, progress) {
|
placeholder: (context, url) {
|
||||||
return Center(
|
return CachedNetworkImage(
|
||||||
child: SizedBox(
|
fadeInDuration: const Duration(milliseconds: 0),
|
||||||
width: 150.0,
|
fadeOutDuration: const Duration(milliseconds: 0),
|
||||||
child:
|
imageUrl: Utils.thumbnailImgUrl(widget.sources[index].url),
|
||||||
LinearProgressIndicator(value: progress.progress ?? 0),
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
// fit: BoxFit.contain,
|
||||||
|
// progressIndicatorBuilder: (context, url, progress) {
|
||||||
|
// return Center(
|
||||||
|
// child: SizedBox(
|
||||||
|
// width: 150.0,
|
||||||
|
// child:
|
||||||
|
// LinearProgressIndicator(value: progress.progress ?? 0),
|
||||||
|
// ),
|
||||||
|
// );
|
||||||
|
// },
|
||||||
// errorListener: (value) {
|
// errorListener: (value) {
|
||||||
// WidgetsBinding.instance.addPostFrameCallback((_) {
|
// WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||||
// setState(() {
|
// setState(() {
|
||||||
|
|||||||
Reference in New Issue
Block a user