yubioath-flutter/lib/app/views/device_info_screen.dart
2021-11-24 12:49:12 +01:00

23 lines
553 B
Dart
Executable File

import 'package:flutter/material.dart';
import '../models.dart';
class DeviceInfoScreen extends StatelessWidget {
final DeviceNode device;
const DeviceInfoScreen(this.device, {Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('YubiKey: ${device.name}'),
Text('Serial: ${device.info.serial}'),
Text('Version: ${device.info.version}'),
],
),
);
}
}