view.dart 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. import 'package:flutter/material.dart';
  2. import 'package:get/get.dart';
  3. import 'package:vitalapp/architecture/values/features.dart';
  4. import 'package:vitalapp/store/store.dart';
  5. import 'controller.dart';
  6. import 'widgets/base_info.dart';
  7. import 'widgets/functions_panel.dart';
  8. import 'widgets/tag_cards.dart';
  9. class PatientDetailPage extends GetView<PatientDetailController> {
  10. const PatientDetailPage({super.key});
  11. @override
  12. Widget build(BuildContext context) {
  13. return Scaffold(
  14. // appBar: VAppBar(
  15. // context: context,
  16. // titleWidget: Obx(
  17. // () => Text(
  18. // "${controller.state.name}档案详情",
  19. // style: const TextStyle(fontSize: 24),
  20. // ),
  21. // ),
  22. // ),
  23. backgroundColor: Colors.grey.shade200,
  24. body: Container(
  25. margin: const EdgeInsets.only(top: 2),
  26. child: Row(
  27. children: [
  28. Container(
  29. width: 440,
  30. padding: const EdgeInsets.only(
  31. left: 12,
  32. top: 8,
  33. // right: 8,
  34. bottom: 8,
  35. ),
  36. child: Container(
  37. padding: const EdgeInsets.only(right: 8),
  38. child: Column(
  39. mainAxisSize: MainAxisSize.max,
  40. children: [
  41. const BaseInfoCard(),
  42. const SizedBox(height: 12),
  43. if (Store.user.hasFeature(FeatureKeys.RecentTestRecords))
  44. const Expanded(
  45. child: LatestRecordCard(),
  46. ),
  47. // Expanded(
  48. // child: CrowdLabelsCard(),
  49. // ),
  50. // SizedBox(height: 12),
  51. // Expanded(child: FollowupTipsCard()),
  52. ],
  53. ),
  54. ),
  55. ),
  56. const Expanded(child: FunctionsPanel()),
  57. ],
  58. ),
  59. ),
  60. );
  61. }
  62. }