view.dart 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import 'package:flutter/material.dart';
  2. import 'package:get/get.dart';
  3. import 'package:vitalapp/components/appbar.dart';
  4. import 'package:vitalapp/pages/data_sync/patients/view.dart';
  5. import 'controller.dart';
  6. class DataSyncPage extends GetView<DataSyncController> {
  7. const DataSyncPage({super.key});
  8. @override
  9. Widget build(BuildContext context) {
  10. return Scaffold(
  11. appBar: VAppBar(
  12. titleText: "数据同步",
  13. actions: [
  14. TextButton(
  15. onPressed: controller.syncData,
  16. child: const Text(
  17. "同步",
  18. style: TextStyle(fontSize: 18, color: Colors.white),
  19. ),
  20. ),
  21. ],
  22. ),
  23. body: Row(
  24. children: [
  25. Container(
  26. width: 120,
  27. color: Colors.green,
  28. alignment: Alignment.center,
  29. child: const Text(
  30. "预留 - 切换栏",
  31. style: TextStyle(fontSize: 18),
  32. ),
  33. ),
  34. const Divider(),
  35. Expanded(
  36. child: Container(
  37. padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 2),
  38. child: const PatientSyncPage(),
  39. ),
  40. ),
  41. ],
  42. ),
  43. );
  44. }
  45. }