2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 18:25:26 +00:00

Ensure that flutter errors are also reported to sentry!

This commit is contained in:
Oliver
2021-06-29 22:26:20 +10:00
parent d0aa6a61ba
commit c84941695d
3 changed files with 22 additions and 26 deletions

View File

@ -432,7 +432,7 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
L10().stockItems,
style: TextStyle(fontWeight: FontWeight.bold),
),
subtitle: part.stockItems.isEmpty ? Text("No stock items available") : null,
subtitle: part.stockItems.isEmpty ? Text(L10().stockItemsNotAvailable) : null,
trailing: part.stockItems.isNotEmpty ? Text("${part.stockItems.length}") : null,
)
);
@ -463,7 +463,7 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
tiles.add(
ListTile(
title: Text("Scan New Stock Item"),
title: Text(L10().barcodeScanItem),
leading: FaIcon(FontAwesomeIcons.box),
trailing: FaIcon(FontAwesomeIcons.qrcode),
onTap: null,