Commit 492fe1a9 authored by ouxiang's avatar ouxiang

image channel test

parent 5246f696
......@@ -76,11 +76,7 @@ class _AssestPlatformChannelState extends State<AssestPlatformChannel> {
color: Colors.pink[300],
width: 300,
height: 300,
child: Image.memory(_imageData,
color: Colors.purple,
width: 200,
height: 200,
),
child: _imageWidget()
)
],
),
......@@ -90,4 +86,17 @@ class _AssestPlatformChannelState extends State<AssestPlatformChannel> {
),
);
}
Widget _imageWidget(){
if (_imageData != null) {
return Image.memory(_imageData,
color: Colors.purple,
width: 200,
height: 200,
);
}else{
return Text('i am not image');
}
}
}
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