display model pk entries (#851)

This commit is contained in:
Oliver
2026-07-06 23:18:51 +10:00
committed by GitHub
parent cb6b5a437d
commit e301abebd8
21 changed files with 104 additions and 1 deletions
+17
View File
@@ -35,6 +35,7 @@ class _InvenTreeAppSettingsState extends State<InvenTreeAppSettingsWidget> {
bool strictHttps = false;
bool enableLabelPrinting = true;
bool darkMode = false;
bool showPk = false;
int screenOrientation = SCREEN_ORIENTATION_SYSTEM;
@@ -74,6 +75,8 @@ class _InvenTreeAppSettingsState extends State<InvenTreeAppSettingsWidget> {
true,
)
as bool;
showPk =
await InvenTreeSettingsManager().getValue(INV_SHOW_PK, false) as bool;
darkMode = AdaptiveTheme.of(context).mode.isDark;
@@ -194,6 +197,20 @@ class _InvenTreeAppSettingsState extends State<InvenTreeAppSettingsWidget> {
},
),
),
ListTile(
title: Text(L10().showPkValue),
subtitle: Text(L10().showPkValueDetail),
leading: Icon(TablerIcons.hash),
trailing: Switch(
value: showPk,
onChanged: (bool value) {
InvenTreeSettingsManager().setValue(INV_SHOW_PK, value);
setState(() {
showPk = value;
});
},
),
),
GestureDetector(
child: ListTile(
title: Text(L10().orientation),