12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import 'package:date_format/date_format.dart';
- import 'package:flutter/material.dart';
- import 'package:get/get.dart';
- import '../index.dart';
- 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,
- ),
- 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('重试'),
- ),
- ],
- ),
- );
- }
- }
|