patient.dart 682 B

1234567891011121314151617181920212223242526
  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: 200,
  16. child: Text(
  17. patient.patientName!,
  18. style: const TextStyle(fontSize: 24, color: Colors.white),
  19. ),
  20. );
  21. }
  22. });
  23. }
  24. }