|
@@ -1,4 +1,3 @@
|
|
|
-import 'package:date_format/date_format.dart';
|
|
|
import 'package:flutter/material.dart';
|
|
|
import 'package:get/get.dart';
|
|
|
import '../index.dart';
|
|
@@ -7,37 +6,35 @@ class NoCardReaderView extends GetView<CardReaderController> {
|
|
|
const NoCardReaderView({super.key});
|
|
|
@override
|
|
|
Widget build(BuildContext context) {
|
|
|
- return Container(
|
|
|
- child: Column(
|
|
|
- mainAxisAlignment: MainAxisAlignment.center,
|
|
|
- children: [
|
|
|
- const Icon(
|
|
|
- Icons.warning_amber_rounded,
|
|
|
- size: 80,
|
|
|
- color: Colors.red,
|
|
|
+ return Column(
|
|
|
+ mainAxisAlignment: MainAxisAlignment.center,
|
|
|
+ children: [
|
|
|
+ const Icon(
|
|
|
+ Icons.warning_amber_rounded,
|
|
|
+ size: 80,
|
|
|
+ color: Colors.red,
|
|
|
+ ),
|
|
|
+ const SizedBox(height: 20),
|
|
|
+ const Text(
|
|
|
+ '未连接读卡器',
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 20,
|
|
|
+ fontWeight: FontWeight.bold,
|
|
|
),
|
|
|
- const SizedBox(height: 20),
|
|
|
- const Text(
|
|
|
- '未连接读卡器',
|
|
|
- style: TextStyle(
|
|
|
- fontSize: 20,
|
|
|
- fontWeight: FontWeight.bold,
|
|
|
- ),
|
|
|
- ),
|
|
|
- const SizedBox(height: 20),
|
|
|
- const Text(
|
|
|
- '请连接读卡器后重试',
|
|
|
- textAlign: TextAlign.center,
|
|
|
- ),
|
|
|
- const SizedBox(height: 20),
|
|
|
- ElevatedButton(
|
|
|
- onPressed: () {
|
|
|
- controller.debugConnectCardReader();
|
|
|
- },
|
|
|
- child: const Text('重试'),
|
|
|
- ),
|
|
|
- ],
|
|
|
- ),
|
|
|
+ ),
|
|
|
+ const SizedBox(height: 20),
|
|
|
+ const Text(
|
|
|
+ '请连接读卡器后重试',
|
|
|
+ textAlign: TextAlign.center,
|
|
|
+ ),
|
|
|
+ const SizedBox(height: 20),
|
|
|
+ ElevatedButton(
|
|
|
+ onPressed: () {
|
|
|
+ controller.checkReader();
|
|
|
+ },
|
|
|
+ child: const Text('重试'),
|
|
|
+ ),
|
|
|
+ ],
|
|
|
);
|
|
|
}
|
|
|
}
|