Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
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
abdullh.alsoleman
Front-End
Commits
89268a4a
Commit
89268a4a
authored
Aug 07, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
bd5b9566
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
README.md
packages/flutter/lib/widgets/README.md
+7
-6
No files found.
packages/flutter/lib/widgets/README.md
View file @
89268a4a
...
...
@@ -57,9 +57,10 @@ very commonly used:
padding, and constraints applied to its size. In addition, a
`Container`
can
be transformed in three dimensional space using a matrix.
*
`Image`
: The
`Image`
widget lets you display an image, referenced using a
URL. The underlying image is cached, which means if several
`Image`
widgets
refer to the same URL, they'll share the underlying image resource.
*
`NetworkImage`
: The
`NetworkImage`
widget lets you display an image, referenced
using a URL. The underlying image is cached, which means if several
`NetworkImage`
widgets refer to the same URL, they'll share the underlying image
resource.
Below is a simple toolbar example that shows how to combine these widgets:
...
...
@@ -75,9 +76,9 @@ class MyToolBar extends Component {
height:
56.0
,
padding:
const
EdgeDims
.
symmetric
(
horizontal:
8.0
),
child:
new
Flex
([
new
Image
(
src:
'menu.png'
,
size:
const
Size
(
25.0
,
25.0
)),
new
Network
Image
(
src:
'menu.png'
,
size:
const
Size
(
25.0
,
25.0
)),
new
Flexible
(
child:
new
Text
(
'My awesome toolbar'
)),
new
Image
(
src:
'search.png'
,
size:
const
Size
(
25.0
,
25.0
)),
new
Network
Image
(
src:
'search.png'
,
size:
const
Size
(
25.0
,
25.0
)),
])
);
}
...
...
@@ -207,7 +208,7 @@ button:
return
new
MyButton
(
child:
new
ShrinkWrapWidth
(
child:
new
Flex
([
new
Image
(
src:
'thumbs-up.png'
,
size:
const
Size
(
25.0
,
25.0
)),
new
Network
Image
(
src:
'thumbs-up.png'
,
size:
const
Size
(
25.0
,
25.0
)),
new
Container
(
padding:
const
EdgeDims
.
only
(
left:
10.0
),
child:
new
Text
(
'Thumbs up'
)
...
...
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