From 87994a491295f5e27321e8f1e12972590356ca8c Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 19 Apr 2023 21:07:56 +1000 Subject: [PATCH] Re-implement BOM link from part view (#325) --- assets/release_notes.md | 1 + lib/widget/part_detail.dart | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/assets/release_notes.md b/assets/release_notes.md index b9220c59..9afdab85 100644 --- a/assets/release_notes.md +++ b/assets/release_notes.md @@ -2,6 +2,7 @@ --- - Fix background image transparency for dark mode +- Fix link to Bill of Materials from Part screen ### 0.11.4 - April 2023 diff --git a/lib/widget/part_detail.dart b/lib/widget/part_detail.dart index 7f3b645f..485b35b0 100644 --- a/lib/widget/part_detail.dart +++ b/lib/widget/part_detail.dart @@ -444,6 +444,11 @@ class _PartDisplayState extends RefreshableState { title: Text(L10().billOfMaterials), leading: FaIcon(FontAwesomeIcons.tableList, color: COLOR_ACTION), trailing: Text(bomCount.toString()), + onTap: () { + Navigator.push(context, MaterialPageRoute( + builder: (context) => BillOfMaterialsWidget(part, isParentComponent: true) + )); + }, ) ); }