Skip to content

Commit

Permalink
Merge pull request #146 from Nesteo/box-info-missing-fields
Browse files Browse the repository at this point in the history
added missing fields to box information screen. #126
  • Loading branch information
SimonOyen authored Nov 13, 2019
2 parents adab5cd + e94bd7e commit d4ab0f5
Showing 1 changed file with 48 additions and 2 deletions.
50 changes: 48 additions & 2 deletions lib/screens/boxinfo_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,50 @@ class BoxInfoScreen extends NesteoFullScreen {
),
],
);

TableRow _holeSizeRow = TableRow(
children: [
TableCell(
child: ListTile(
title: Text("Hole size:"),
leading: Icon(FontAwesomeIcons.ruler)),
),
TableCell(
child: ListTile(
title: Text("${nestingBox.material}"),
),
),
],
);
TableRow _regionRow = TableRow(
children: [
TableCell(
child: ListTile(
title: Text("Region:"),
leading: Icon(FontAwesomeIcons.globe),
),
),
TableCell(
child: ListTile(
title: Text(nestingBox.region.name),
),
),
],
);
TableRow _ownerRow = TableRow(
children: [
TableCell(
child: ListTile(
title: Text("Owner:"),
leading: Icon(FontAwesomeIcons.userAlt),
),
),
TableCell(
child: ListTile(
title: Text(nestingBox.owner.name),
),
),
],
);
TableRow _commentRow = TableRow(
children: [
TableCell(
Expand All @@ -140,7 +183,7 @@ class BoxInfoScreen extends NesteoFullScreen {
),
TableCell(
child: ListTile(
subtitle: Text(nestingBox.comment),
title: Text(nestingBox.comment),
),
),
],
Expand All @@ -152,6 +195,9 @@ class BoxInfoScreen extends NesteoFullScreen {
_hangUpDateRow,
_inspectionCountRow,
_materialRow,
_holeSizeRow,
_regionRow,
_ownerRow,
_commentRow,
],
);
Expand Down

0 comments on commit d4ab0f5

Please sign in to comment.