mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-04-20 22:13:48 +00:00
Remove unused import from SNR indicator widget
This commit is contained in:
parent
246cf99415
commit
3f80ae1cf7
3 changed files with 6 additions and 6 deletions
|
|
@ -465,7 +465,7 @@ class _NeighboursScreenState extends State<NeighboursScreen> {
|
|||
children: [
|
||||
Icon(snrUi.icon, color: snrUi.color, size: 18.0),
|
||||
Text(
|
||||
snrUi.text!,
|
||||
snrUi.text,
|
||||
style: TextStyle(fontSize: 10, color: snrUi.color),
|
||||
),
|
||||
],
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ class AppBarTitle extends StatelessWidget {
|
|||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
if (leading != null) leading!,
|
||||
leading ?? const SizedBox.shrink(),
|
||||
Text(title),
|
||||
if (connector.isConnected && connector.selfName != null)
|
||||
Center(
|
||||
|
|
@ -47,7 +47,7 @@ class AppBarTitle extends StatelessWidget {
|
|||
SNRIndicator(connector: connector),
|
||||
],
|
||||
),
|
||||
if (trailing != null) trailing!,
|
||||
trailing ?? const SizedBox.shrink(),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
import 'dart:developer';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import '../connector/meshcore_connector.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
|
|
@ -176,7 +174,9 @@ class _SNRIndicatorState extends State<SNRIndicator> {
|
|||
leading: Icon(snrUi.icon, color: snrUi.color),
|
||||
title: Text(
|
||||
name ??
|
||||
'${repeater.pubkeyFirstByte.toRadixString(16).padLeft(2, '0')}',
|
||||
repeater.pubkeyFirstByte
|
||||
.toRadixString(16)
|
||||
.padLeft(2, '0'),
|
||||
),
|
||||
subtitle: Text(
|
||||
'SNR: ${repeater.snr.toStringAsFixed(1)} dB\nLast seen: ${_formatLastUpdated(repeater.lastUpdated)}',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue