mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-23 18:22:39 +03:00
Use generic YubiKey image for inaccessible.
This commit is contained in:
parent
cb62874ed2
commit
b97d17eaf5
@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
|
import 'package:yubico_authenticator/management/models.dart';
|
||||||
import 'package:yubico_authenticator/widgets/product_image.dart';
|
import 'package:yubico_authenticator/widgets/product_image.dart';
|
||||||
|
|
||||||
import '../../core/models.dart';
|
import '../../core/models.dart';
|
||||||
@ -53,7 +54,8 @@ class DeviceAvatar extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
return DeviceAvatar(
|
return DeviceAvatar(
|
||||||
radius: radius,
|
radius: radius,
|
||||||
child: const Icon(Icons.device_unknown),
|
child: const ProductImage(
|
||||||
|
name: '', formFactor: FormFactor.unknown, isNfc: false),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
nfcReader: (_) => DeviceAvatar(
|
nfcReader: (_) => DeviceAvatar(
|
||||||
|
Loading…
Reference in New Issue
Block a user