mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Updating styles
This commit is contained in:
parent
46f5d57a1e
commit
1dce2c8591
@ -1098,16 +1098,16 @@ class DefaultAssetBundle extends InheritedWidget {
|
||||
}
|
||||
|
||||
class RawImage extends StatelessComponent {
|
||||
RawImage(
|
||||
{Key key,
|
||||
this.bytes,
|
||||
this.width,
|
||||
this.height,
|
||||
this.colorFilter,
|
||||
this.fit,
|
||||
this.repeat: ImageRepeat.noRepeat,
|
||||
this.centerSlice})
|
||||
: super(key: key);
|
||||
RawImage({
|
||||
Key key,
|
||||
this.bytes,
|
||||
this.width,
|
||||
this.height,
|
||||
this.colorFilter,
|
||||
this.fit,
|
||||
this.repeat: ImageRepeat.noRepeat,
|
||||
this.centerSlice
|
||||
}) : super(key: key);
|
||||
|
||||
final Uint8List bytes;
|
||||
final double width;
|
||||
@ -1120,13 +1120,14 @@ class RawImage extends StatelessComponent {
|
||||
Widget build(BuildContext context) {
|
||||
ImageResource image = new ImageResource(decodeImageFromList(bytes));
|
||||
return new ImageListener(
|
||||
image: image,
|
||||
width: width,
|
||||
height: height,
|
||||
colorFilter: colorFilter,
|
||||
fit: fit,
|
||||
repeat: repeat,
|
||||
centerSlice: centerSlice);
|
||||
image: image,
|
||||
width: width,
|
||||
height: height,
|
||||
colorFilter: colorFilter,
|
||||
fit: fit,
|
||||
repeat: repeat,
|
||||
centerSlice: centerSlice
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user