Remove unused import from SNR indicator widget

This commit is contained in:
Winston Lowe
2026-02-15 12:50:16 -08:00
parent 246cf99415
commit 3f80ae1cf7
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -465,7 +465,7 @@ class _NeighboursScreenState extends State<NeighboursScreen> {
children: [ children: [
Icon(snrUi.icon, color: snrUi.color, size: 18.0), Icon(snrUi.icon, color: snrUi.color, size: 18.0),
Text( Text(
snrUi.text!, snrUi.text,
style: TextStyle(fontSize: 10, color: snrUi.color), style: TextStyle(fontSize: 10, color: snrUi.color),
), ),
], ],
+2 -2
View File
@@ -28,7 +28,7 @@ class AppBarTitle extends StatelessWidget {
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
if (leading != null) leading!, leading ?? const SizedBox.shrink(),
Text(title), Text(title),
if (connector.isConnected && connector.selfName != null) if (connector.isConnected && connector.selfName != null)
Center( Center(
@@ -47,7 +47,7 @@ class AppBarTitle extends StatelessWidget {
SNRIndicator(connector: connector), SNRIndicator(connector: connector),
], ],
), ),
if (trailing != null) trailing!, trailing ?? const SizedBox.shrink(),
], ],
); );
} }
+3 -3
View File
@@ -1,5 +1,3 @@
import 'dart:developer';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import '../connector/meshcore_connector.dart'; import '../connector/meshcore_connector.dart';
import '../l10n/l10n.dart'; import '../l10n/l10n.dart';
@@ -176,7 +174,9 @@ class _SNRIndicatorState extends State<SNRIndicator> {
leading: Icon(snrUi.icon, color: snrUi.color), leading: Icon(snrUi.icon, color: snrUi.color),
title: Text( title: Text(
name ?? name ??
'${repeater.pubkeyFirstByte.toRadixString(16).padLeft(2, '0')}', repeater.pubkeyFirstByte
.toRadixString(16)
.padLeft(2, '0'),
), ),
subtitle: Text( subtitle: Text(
'SNR: ${repeater.snr.toStringAsFixed(1)} dB\nLast seen: ${_formatLastUpdated(repeater.lastUpdated)}', 'SNR: ${repeater.snr.toStringAsFixed(1)} dB\nLast seen: ${_formatLastUpdated(repeater.lastUpdated)}',