Commit 1dce2c85 authored by Ali Ghassemi's avatar Ali Ghassemi

Updating styles

parent 46f5d57a
...@@ -1098,16 +1098,16 @@ class DefaultAssetBundle extends InheritedWidget { ...@@ -1098,16 +1098,16 @@ class DefaultAssetBundle extends InheritedWidget {
} }
class RawImage extends StatelessComponent { class RawImage extends StatelessComponent {
RawImage( RawImage({
{Key key, Key key,
this.bytes, this.bytes,
this.width, this.width,
this.height, this.height,
this.colorFilter, this.colorFilter,
this.fit, this.fit,
this.repeat: ImageRepeat.noRepeat, this.repeat: ImageRepeat.noRepeat,
this.centerSlice}) this.centerSlice
: super(key: key); }) : super(key: key);
final Uint8List bytes; final Uint8List bytes;
final double width; final double width;
...@@ -1120,13 +1120,14 @@ class RawImage extends StatelessComponent { ...@@ -1120,13 +1120,14 @@ class RawImage extends StatelessComponent {
Widget build(BuildContext context) { Widget build(BuildContext context) {
ImageResource image = new ImageResource(decodeImageFromList(bytes)); ImageResource image = new ImageResource(decodeImageFromList(bytes));
return new ImageListener( return new ImageListener(
image: image, image: image,
width: width, width: width,
height: height, height: height,
colorFilter: colorFilter, colorFilter: colorFilter,
fit: fit, fit: fit,
repeat: repeat, repeat: repeat,
centerSlice: centerSlice); centerSlice: centerSlice
);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment