Prechádzať zdrojové kódy

0016127: 【健康档案】【健康信息】手术名称/外伤/输血下输入名称后,编辑名称,弹出输入框为空白框,不方便编辑

finlay 1 rok pred
rodič
commit
7f693cdd1f

+ 6 - 2
lib/components/dialog_profile_time_input.dart

@@ -88,7 +88,9 @@ class _VDialogProfileTimeInputState extends State<VDialogProfileTimeInput> {
           label: '名称',
           content: initialValue.name,
           onTap: () async {
-            var result = await const VDialogInput().show();
+            var result = await VDialogInput(
+              initialValue: initialValue.name,
+            ).show();
             if (result != null) {
               setState(() {
                 initialValue.name = result;
@@ -102,7 +104,9 @@ class _VDialogProfileTimeInputState extends State<VDialogProfileTimeInput> {
               ? DateFormat('yyyy-MM-dd').format(initialValue.time!)
               : '',
           onTap: () async {
-            var result = await const VDialogDate().show();
+            var result = await VDialogDate(
+              initialValue: initialValue.time,
+            ).show();
             if (result != null) {
               setState(() {
                 initialValue.time = result;