Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gmalpha_flutter
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile
gmalpha_flutter
Commits
492fe1a9
Commit
492fe1a9
authored
Feb 20, 2019
by
ouxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
image channel test
parent
5246f696
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
assetsChannel.dart
lib/assetsChannel.dart
+14
-5
No files found.
lib/assetsChannel.dart
View file @
492fe1a9
...
@@ -76,11 +76,7 @@ class _AssestPlatformChannelState extends State<AssestPlatformChannel> {
...
@@ -76,11 +76,7 @@ class _AssestPlatformChannelState extends State<AssestPlatformChannel> {
color:
Colors
.
pink
[
300
],
color:
Colors
.
pink
[
300
],
width:
300
,
width:
300
,
height:
300
,
height:
300
,
child:
Image
.
memory
(
_imageData
,
child:
_imageWidget
()
color:
Colors
.
purple
,
width:
200
,
height:
200
,
),
)
)
],
],
),
),
...
@@ -90,4 +86,17 @@ class _AssestPlatformChannelState extends State<AssestPlatformChannel> {
...
@@ -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'
);
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment