patient.dart 764 B

1234567891011121314151617181920212223242526272829
  1. import 'package:flutter/material.dart';
  2. import 'package:get/get.dart';
  3. import 'package:vitalapp/store/store.dart';
  4. class HeaderPatientPlace extends StatelessWidget {
  5. const HeaderPatientPlace({super.key});
  6. @override
  7. Widget build(BuildContext context) {
  8. return Obx(() {
  9. final patient = Store.user.currentSelectPatientInfo;
  10. if (patient == null) {
  11. return const SizedBox();
  12. } else {
  13. return Container(
  14. alignment: Alignment.centerRight,
  15. width: 120,
  16. child: Text(
  17. patient.patientName!,
  18. style: const TextStyle(
  19. fontSize: 24,
  20. color: Colors.white,
  21. overflow: TextOverflow.ellipsis),
  22. ),
  23. );
  24. }
  25. });
  26. }
  27. }