From b97d17eaf540a6e901b651e7f18a44e316bf05cc Mon Sep 17 00:00:00 2001 From: Dain Nilsson Date: Tue, 8 Nov 2022 14:57:48 +0100 Subject: [PATCH] Use generic YubiKey image for inaccessible. --- lib/app/views/device_avatar.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/app/views/device_avatar.dart b/lib/app/views/device_avatar.dart index 02c84eec..d07c60b6 100755 --- a/lib/app/views/device_avatar.dart +++ b/lib/app/views/device_avatar.dart @@ -16,6 +16,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:yubico_authenticator/management/models.dart'; import 'package:yubico_authenticator/widgets/product_image.dart'; import '../../core/models.dart'; @@ -53,7 +54,8 @@ class DeviceAvatar extends StatelessWidget { } return DeviceAvatar( radius: radius, - child: const Icon(Icons.device_unknown), + child: const ProductImage( + name: '', formFactor: FormFactor.unknown, isNfc: false), ); }, nfcReader: (_) => DeviceAvatar(