123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- import 'package:flutter/material.dart';
- import 'package:get/get.dart';
- import 'package:vitalapp/architecture/values/features.dart';
- import 'package:vitalapp/store/store.dart';
- import 'controller.dart';
- import 'widgets/base_info.dart';
- import 'widgets/functions_panel.dart';
- import 'widgets/tag_cards.dart';
- class PatientDetailPage extends GetView<PatientDetailController> {
- const PatientDetailPage({super.key});
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- // appBar: VAppBar(
- // context: context,
- // titleWidget: Obx(
- // () => Text(
- // "${controller.state.name}档案详情",
- // style: const TextStyle(fontSize: 24),
- // ),
- // ),
- // ),
- backgroundColor: Colors.grey.shade200,
- body: Container(
- margin: const EdgeInsets.only(top: 2),
- child: Row(
- children: [
- Container(
- width: 440,
- padding: const EdgeInsets.only(
- left: 12,
- top: 8,
- // right: 8,
- bottom: 8,
- ),
- child: Container(
- padding: const EdgeInsets.only(right: 8),
- child: Column(
- mainAxisSize: MainAxisSize.max,
- children: [
- const BaseInfoCard(),
- const SizedBox(height: 12),
- if (Store.user.hasFeature(FeatureKeys.RecentTestRecords))
- const Expanded(
- child: LatestRecordCard(),
- ),
- // Expanded(
- // child: CrowdLabelsCard(),
- // ),
- // SizedBox(height: 12),
- // Expanded(child: FollowupTipsCard()),
- ],
- ),
- ),
- ),
- const Expanded(child: FunctionsPanel()),
- ],
- ),
- ),
- );
- }
- }
|