patient_info.dart 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // ignore_for_file: must_be_immutable
  2. import 'package:flutter/material.dart';
  3. import 'package:get/get.dart';
  4. import 'package:vitalapp/pages/patient/create/controller.dart';
  5. import 'package:vitalapp/pages/patient_info/view.dart';
  6. class PatientInfo extends GetView<CreatePatientController> {
  7. final ScrollController scrollController = ScrollController();
  8. PatientInfo({super.key, this.isNotScanCode = true});
  9. bool? isNotScanCode;
  10. @override
  11. Widget build(BuildContext context) {
  12. return Container(
  13. padding: const EdgeInsets.only(bottom: 80),
  14. child: _buildContent(),
  15. );
  16. }
  17. Widget _buildContent() {
  18. return Scrollbar(
  19. controller: scrollController,
  20. child: SingleChildScrollView(
  21. controller: scrollController,
  22. child: Column(
  23. children: [
  24. PatientInfomationPage(
  25. isNeedSyncAddressCheck: true,
  26. isCanEditId: true,
  27. isRequiredName: true,
  28. isRequiredCard: true,
  29. ),
  30. ],
  31. ),
  32. ),
  33. );
  34. }
  35. }