Skip to content
This repository was archived by the owner on Jul 6, 2020. It is now read-only.

Commit 555c0df

Browse files
author
mchome
committed
add imageFilter
1 parent f9b4402 commit 555c0df

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ pubspec.lock
1111
tmp/
1212
ref/
1313
build/
14-
coverage/
14+
coverage/
15+
flutter_export_environment.sh

lib/src/transition/transition_to_image.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class TransitionToImage extends StatefulWidget {
2727
this.repeat = ImageRepeat.noRepeat,
2828
this.matchTextDirection = false,
2929
this.invertColors = false,
30-
// this.imageFilter,
30+
this.imageFilter,
3131
this.placeholder: const Icon(Icons.clear),
3232
this.duration: const Duration(milliseconds: 300),
3333
this.tween,
@@ -161,7 +161,7 @@ class TransitionToImage extends StatefulWidget {
161161
/// * [Paint.invertColors], for the dart:ui implementation.
162162
final bool invertColors;
163163

164-
// final ImageFilter imageFilter;
164+
final ImageFilter imageFilter;
165165

166166
/// Widget displayed while the target [image] failed to load.
167167
final Widget placeholder;
@@ -444,7 +444,7 @@ class _TransitionToImageState extends State<TransitionToImage>
444444
repeat: widget.repeat,
445445
matchTextDirection: widget.matchTextDirection,
446446
invertColors: widget.invertColors,
447-
// imageFilter: widget.imageFilter,
447+
imageFilter: widget.imageFilter,
448448
);
449449
}
450450
}

pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_advanced_networkimage
22
description: An advanced image provider provides caching and retrying for flutter app. Now with zoomable widget and transition to image widget.
3-
version: 0.5.1
3+
version: 0.6.0
44
author: "fuyumi <[email protected]>"
55
homepage: https://github.com/mchome/flutter_advanced_networkimage
66

@@ -19,4 +19,4 @@ dev_dependencies:
1919

2020
environment:
2121
sdk: ">=2.3.0 <3.0.0"
22-
flutter: ">=1.6.0 <2.0.0"
22+
flutter: ">=1.8.0 <2.0.0"

0 commit comments

Comments
 (0)