Commit eced8b3c authored by Collin Jackson's avatar Collin Jackson

Fix build

parent ad569a23
...@@ -49,56 +49,7 @@ class FitnessItemList extends Component { ...@@ -49,56 +49,7 @@ class FitnessItemList extends Component {
} }
class FeedFragment extends StatefulComponent { class FeedFragment extends StatefulComponent {
<<<<<<< HEAD:sky/sdk/example/fitness/lib/feed.dart
FeedFragment({ this.navigator, this.userData, this.onItemCreated, this.onItemDeleted }); 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; Navigator navigator;
List<FitnessItem> userData; List<FitnessItem> userData;
...@@ -247,6 +198,7 @@ class HomeFragment extends StatefulComponent { ...@@ -247,6 +198,7 @@ class HomeFragment extends StatefulComponent {
if (!_isShowingSnackBar) if (!_isShowingSnackBar)
return null; return null;
return new SnackBar( return new SnackBar(
showing: _isShowingSnackBar,
content: new Text("Item deleted."), content: new Text("Item deleted."),
actions: [new SnackBarAction(label: "UNDO", onPressed: _handleUndo)] actions: [new SnackBarAction(label: "UNDO", onPressed: _handleUndo)]
); );
......
...@@ -24,7 +24,7 @@ abstract class FitnessItemRow extends Component { ...@@ -24,7 +24,7 @@ abstract class FitnessItemRow extends Component {
FitnessItemRow({ FitnessItem item, this.onDismissed }) FitnessItemRow({ FitnessItem item, this.onDismissed })
: this.item = item, : this.item = item,
super(key: item.when.toString()); super(key: new Key(item.when.toString()));
final FitnessItem item; final FitnessItem item;
final FitnessItemHandler onDismissed; final FitnessItemHandler onDismissed;
......
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