mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-02 23:10:55 +10:00
Refactor UI code for better readability and consistency
- Improved formatting of ListTile icons and text styles in settings_screen.dart, telemetry_screen.dart, usb_screen.dart, gif_picker.dart, path_editor_sheet.dart, repeater_login_dialog.dart, and room_login_dialog.dart for better readability. - Consolidated TextStyle definitions into single lines where applicable. - Updated notification_service.dart to enhance readability of notification ID assignment. - Simplified function signatures in routing_sheet.dart for clarity. - Cleaned up test assertions in usb_flow_test.dart for conciseness. - Removed unused translations in untranslated.json to streamline localization files.
This commit is contained in:
@@ -1484,23 +1484,22 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
_linuxSystemScanResults
|
||||
..clear()
|
||||
..addAll(
|
||||
systemDevices
|
||||
.map(
|
||||
(device) => ScanResult(
|
||||
device: device,
|
||||
advertisementData: AdvertisementData(
|
||||
advName: device.platformName,
|
||||
txPowerLevel: null,
|
||||
appearance: null,
|
||||
connectable: true,
|
||||
manufacturerData: const <int, List<int>>{},
|
||||
serviceData: const <Guid, List<int>>{},
|
||||
serviceUuids: <Guid>[Guid(MeshCoreUuids.service)],
|
||||
),
|
||||
rssi: 0,
|
||||
timeStamp: DateTime.now(),
|
||||
),
|
||||
systemDevices.map(
|
||||
(device) => ScanResult(
|
||||
device: device,
|
||||
advertisementData: AdvertisementData(
|
||||
advName: device.platformName,
|
||||
txPowerLevel: null,
|
||||
appearance: null,
|
||||
connectable: true,
|
||||
manufacturerData: const <int, List<int>>{},
|
||||
serviceData: const <Guid, List<int>>{},
|
||||
serviceUuids: <Guid>[Guid(MeshCoreUuids.service)],
|
||||
),
|
||||
rssi: 0,
|
||||
timeStamp: DateTime.now(),
|
||||
),
|
||||
),
|
||||
);
|
||||
_mergeLinuxSystemScanResults();
|
||||
notifyListeners();
|
||||
|
||||
@@ -956,7 +956,7 @@ Uint8List buildSendTelemetryReq(Uint8List? pubKey) {
|
||||
writer.writeBytes(Uint8List(3)); // reserved bytes
|
||||
writer.writeBytes(pubKey);
|
||||
} else {
|
||||
writer.writeBytes(Uint8List(4)); // reserved bytes
|
||||
writer.writeBytes(Uint8List(3)); // reserved bytes
|
||||
}
|
||||
return writer.toBytes();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user