mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-06-25 03:42:55 +10:00
Remove unused import from SNR indicator widget
This commit is contained in:
@@ -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),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -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(),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)}',
|
||||||
|
|||||||
Reference in New Issue
Block a user