fix:当搜索到的设备昵称为空时不显示

This commit is contained in:
liyi 2025-03-25 14:05:36 +08:00
parent 70d549d04d
commit ea3dfa2286

View File

@ -105,6 +105,11 @@ class _NearbyLockPageState extends State<NearbyLockPage> with RouteAware {
Widget nearbyLockItem(
String lockTypeIcon, ScanResult scanResult, Function() action) {
// 广
if (scanResult.advertisementData.advName.isEmpty) {
return const SizedBox.shrink();
}
return GestureDetector(
onTap: () {
final String? serviceUuid =