fix(#483): Button and buzzer sits above the public key

Owner placement. Node Settings order is now node name, location, GPS
enable, Button and buzzer, public key.

Epic: #474, #475
Agent: CalmBay (session d14220d9)
pull/502/head
Strycher 2 months ago
parent 3b210e0fdb
commit 49b6bfe2f5

@ -258,20 +258,8 @@ class _SettingsScreenState extends State<SettingsScreen> {
},
),
],
if (connector.selfPublicKey != null) ...[
const Divider(height: 1),
Padding(
padding: const EdgeInsets.fromLTRB(16, 8, 16, 12),
child: _buildInfoRow(
l10n.settings_infoPublicKey,
pubKeyToHex(connector.selfPublicKey!),
copyValue: pubKeyToHex(connector.selfPublicKey!),
),
),
],
// Button and buzzer: device UI config (#474/#475). Owner-placed
// under Node Settings, appended last so nothing already here
// moves.
// under Node Settings, directly above the public key.
//
// Gated STRICTLY on the capability bits. A radio without the
// hardware has no button to configure, so it gets no tile, no
@ -304,6 +292,17 @@ class _SettingsScreenState extends State<SettingsScreen> {
},
),
],
if (connector.selfPublicKey != null) ...[
const Divider(height: 1),
Padding(
padding: const EdgeInsets.fromLTRB(16, 8, 16, 12),
child: _buildInfoRow(
l10n.settings_infoPublicKey,
pubKeyToHex(connector.selfPublicKey!),
copyValue: pubKeyToHex(connector.selfPublicKey!),
),
),
],
],
),
),

Loading…
Cancel
Save

Powered by TurnKey Linux.