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
11332601
Commit
11332601
authored
Jun 17, 2015
by
Hixie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove keys from the examples.
TBR=abarth Review URL:
https://codereview.chromium.org/1194473004
.
parent
95d090bc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
12 deletions
+2
-12
container.dart
examples/widgets/container.dart
+0
-4
navigation.dart
examples/widgets/navigation.dart
+0
-4
sector.dart
examples/widgets/sector.dart
+0
-2
spinning_mixed.dart
examples/widgets/spinning_mixed.dart
+2
-2
No files found.
examples/widgets/container.dart
View file @
11332601
...
...
@@ -11,7 +11,6 @@ class ContainerApp extends App {
Widget
build
()
{
return
new
Flex
([
new
Container
(
key:
'a'
,
padding:
new
EdgeDims
.
all
(
10.0
),
margin:
new
EdgeDims
.
all
(
10.0
),
decoration:
new
BoxDecoration
(
backgroundColor:
const
Color
(
0xFFCCCCCC
)),
...
...
@@ -21,17 +20,14 @@ class ContainerApp extends App {
)
),
new
Container
(
key:
'b'
,
decoration:
new
BoxDecoration
(
backgroundColor:
const
Color
(
0xFFFFFF00
)),
padding:
new
EdgeDims
.
symmetric
(
horizontal:
50.0
,
vertical:
75.0
),
child:
new
Flex
([
new
RaisedButton
(
key:
'b1'
,
child:
new
Text
(
'PRESS ME'
),
onPressed:
()
=>
print
(
"Hello World"
)
),
new
RaisedButton
(
key:
'b2'
,
child:
new
Text
(
'DISABLED'
),
onPressed:
()
=>
print
(
"Hello World"
),
enabled:
false
...
...
examples/widgets/navigation.dart
View file @
11332601
...
...
@@ -16,12 +16,10 @@ List<Route> routes = [
child:
new
Block
([
new
Text
(
"You are at home"
),
new
RaisedButton
(
key:
'b'
,
child:
new
Text
(
'GO SHOPPING'
),
onPressed:
()
=>
navigator
.
pushNamed
(
'shopping'
)
),
new
RaisedButton
(
key:
'a'
,
child:
new
Text
(
'START ADVENTURE'
),
onPressed:
()
=>
navigator
.
pushNamed
(
'adventure'
)
)
...
...
@@ -36,12 +34,10 @@ List<Route> routes = [
child:
new
Block
([
new
Text
(
"Village Shop"
),
new
RaisedButton
(
key:
'a'
,
child:
new
Text
(
'RETURN HOME'
),
onPressed:
()
=>
navigator
.
back
()
),
new
RaisedButton
(
key:
'b'
,
child:
new
Text
(
'GO TO DUNGEON'
),
onPressed:
()
=>
navigator
.
push
(
routes
[
2
])
)
...
...
examples/widgets/sector.dart
View file @
11332601
...
...
@@ -84,7 +84,6 @@ class SectorApp extends App {
padding:
new
EdgeDims
.
symmetric
(
horizontal:
8.0
,
vertical:
25.0
),
child:
new
Flex
([
new
RaisedButton
(
key:
'add-button'
,
enabled:
enabledAdd
,
child:
new
ShrinkWrapWidth
(
child:
new
Flex
([
...
...
@@ -99,7 +98,6 @@ class SectorApp extends App {
onPressed:
addSector
),
new
RaisedButton
(
key:
'remove-button'
,
enabled:
enabledRemove
,
child:
new
ShrinkWrapWidth
(
child:
new
Flex
([
...
...
examples/widgets/spinning_mixed.dart
View file @
11332601
...
...
@@ -37,7 +37,7 @@ class Rectangle extends Component {
Widget
builder
(
)
{
return
new
Flex
([
new
Rectangle
(
const
Color
(
0xFF00FFFF
)
,
key:
'a'
),
new
Rectangle
(
const
Color
(
0xFF00FFFF
)),
new
Container
(
padding:
new
EdgeDims
.
all
(
10.0
),
margin:
new
EdgeDims
.
all
(
10.0
),
...
...
@@ -50,7 +50,7 @@ Widget builder() {
onPressed:
()
=>
print
(
"Hello World"
)
)
),
new
Rectangle
(
const
Color
(
0xFFFFFF00
)
,
key:
'b'
),
new
Rectangle
(
const
Color
(
0xFFFFFF00
)),
],
direction:
FlexDirection
.
vertical
,
justifyContent:
FlexJustifyContent
.
spaceBetween
...
...
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