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
eced8b3c
Commit
eced8b3c
authored
Jul 22, 2015
by
Collin Jackson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build
parent
ad569a23
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
50 deletions
+2
-50
feed.dart
packages/flutter/example/fitness/lib/feed.dart
+1
-49
fitness_item.dart
packages/flutter/example/fitness/lib/fitness_item.dart
+1
-1
No files found.
packages/flutter/example/fitness/lib/feed.dart
View file @
eced8b3c
...
...
@@ -49,56 +49,7 @@ class FitnessItemList extends Component {
}
class
FeedFragment
extends
StatefulComponent
{
<<<<<<<
HEAD:
sky
/
sdk
/
example
/
fitness
/
lib
/
feed
.
dart
FeedFragment
({
this
.
navigator
,
this
.
userData
,
this
.
onItemCreated
,
this
.
onItemDeleted
});
=======
MeasurementRow
({
Measurement
measurement
,
this
.
onDismissed
})
:
this
.
measurement
=
measurement
,
super
(
key:
new
Key
.
stringify
(
measurement
.
when
));
final
Measurement
measurement
;
final
MeasurementHandler
onDismissed
;
static
const
double
kHeight
=
79.0
;
Widget
build
()
{
List
<
Widget
>
children
=
[
new
Flexible
(
child:
new
Text
(
measurement
.
displayWeight
,
style:
const
TextStyle
(
textAlign:
TextAlign
.
right
)
)
),
new
Flexible
(
child:
new
Text
(
measurement
.
displayDate
,
style:
Theme
.
of
(
this
).
text
.
caption
.
copyWith
(
textAlign:
TextAlign
.
right
)
)
)
];
return
new
Dismissable
(
key:
new
Key
.
stringify
(
measurement
.
when
),
onDismissed:
()
=>
onDismissed
(
measurement
),
child:
new
Card
(
child:
new
Container
(
height:
kHeight
,
padding:
const
EdgeDims
.
all
(
8.0
),
child:
new
Flex
(
children
,
alignItems:
FlexAlignItems
.
baseline
,
textBaseline:
DefaultTextStyle
.
of
(
this
).
textBaseline
)
)
)
);
}
}
class
HomeFragment
extends
StatefulComponent
{
HomeFragment
({
this
.
navigator
,
this
.
userData
,
this
.
onMeasurementCreated
,
this
.
onMeasurementDeleted
});
>>>>>>>
dk
/
master:
sky
/
sdk
/
example
/
fitness
/
lib
/
home
.
dart
Navigator
navigator
;
List
<
FitnessItem
>
userData
;
...
...
@@ -247,6 +198,7 @@ class HomeFragment extends StatefulComponent {
if
(!
_isShowingSnackBar
)
return
null
;
return
new
SnackBar
(
showing:
_isShowingSnackBar
,
content:
new
Text
(
"Item deleted."
),
actions:
[
new
SnackBarAction
(
label:
"UNDO"
,
onPressed:
_handleUndo
)]
);
...
...
packages/flutter/example/fitness/lib/fitness_item.dart
View file @
eced8b3c
...
...
@@ -24,7 +24,7 @@ abstract class FitnessItemRow extends Component {
FitnessItemRow
({
FitnessItem
item
,
this
.
onDismissed
})
:
this
.
item
=
item
,
super
(
key:
item
.
when
.
toString
(
));
super
(
key:
new
Key
(
item
.
when
.
toString
()
));
final
FitnessItem
item
;
final
FitnessItemHandler
onDismissed
;
...
...
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