12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import 'package:flutter/material.dart';
- import 'package:get/get.dart';
- import 'package:vitalapp/components/button.dart';
- import '../index.dart';
- class CardReaderView extends GetView<CardReaderController> {
- const CardReaderView({super.key});
- @override
- Widget build(BuildContext context) {
- return Container(
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- const Image(
- image: AssetImage('assets/images/card_reader.png'),
- width: 100,
- ),
- 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: () {
- // FIXME 模拟读取到数据
- controller.debugGetValueAndClose();
- },
- child: const Text('取消'),
- ),
- ],
- ),
- );
- }
- }
|