mirror of
https://github.com/inventree/inventree-app.git
synced 2026-07-22 20:23:26 +00:00
display model pk entries (#851)
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user