|
@@ -26,6 +26,7 @@ class ExamToxicSubstance extends StatelessWidget {
|
|
|
return ExamCard2(
|
|
|
title: currentFormObject.label ?? '',
|
|
|
content: Column(
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
children: [
|
|
|
_buildTextField(),
|
|
|
_buildProtectionMeasuresText(),
|
|
@@ -37,18 +38,28 @@ class ExamToxicSubstance extends StatelessWidget {
|
|
|
|
|
|
Widget _buildTextField() {
|
|
|
return Container(
|
|
|
- padding: const EdgeInsets.all(32).copyWith(top: 0),
|
|
|
- child: TextField(
|
|
|
- readOnly: true,
|
|
|
- controller: TextEditingController(text: currentValue),
|
|
|
- style: const TextStyle(fontSize: 30),
|
|
|
- onTap: () async {
|
|
|
- final result = await _showInputDialog(
|
|
|
- title: currentFormObject.label ?? '',
|
|
|
- initialValue: currentValue,
|
|
|
- );
|
|
|
- selectValueChange.call(result);
|
|
|
- },
|
|
|
+ padding: const EdgeInsets.all(32).copyWith(top: 0, left: 0),
|
|
|
+ child: Row(
|
|
|
+ children: [
|
|
|
+ Text(
|
|
|
+ currentFormObject.label ?? '',
|
|
|
+ style: TextStyle(fontSize: 24),
|
|
|
+ ),
|
|
|
+ Expanded(
|
|
|
+ child: TextField(
|
|
|
+ readOnly: true,
|
|
|
+ controller: TextEditingController(text: currentValue),
|
|
|
+ style: const TextStyle(fontSize: 30),
|
|
|
+ onTap: () async {
|
|
|
+ final result = await _showInputDialog(
|
|
|
+ title: currentFormObject.label ?? '',
|
|
|
+ initialValue: currentValue,
|
|
|
+ );
|
|
|
+ selectValueChange.call(result);
|
|
|
+ },
|
|
|
+ ),
|
|
|
+ )
|
|
|
+ ],
|
|
|
),
|
|
|
);
|
|
|
}
|
|
@@ -56,10 +67,10 @@ class ExamToxicSubstance extends StatelessWidget {
|
|
|
Widget _buildProtectionMeasuresText() {
|
|
|
return Container(
|
|
|
alignment: Alignment.centerLeft,
|
|
|
- padding: const EdgeInsets.only(left: 32, bottom: 12),
|
|
|
+ padding: const EdgeInsets.only(bottom: 12),
|
|
|
child: const Text(
|
|
|
'防护措施:',
|
|
|
- style: TextStyle(fontSize: 25),
|
|
|
+ style: TextStyle(fontSize: 24),
|
|
|
),
|
|
|
);
|
|
|
}
|
|
@@ -121,7 +132,8 @@ class ExamToxicSubstance extends StatelessWidget {
|
|
|
)
|
|
|
.toList(),
|
|
|
),
|
|
|
- if (selectedValue == '2') _buildProtectionMeasureTextField(),
|
|
|
+ if (selectedValue == '2')
|
|
|
+ Expanded(child: _buildProtectionMeasureTextField()),
|
|
|
],
|
|
|
),
|
|
|
);
|
|
@@ -132,8 +144,7 @@ class ExamToxicSubstance extends StatelessWidget {
|
|
|
child: Row(
|
|
|
children: [
|
|
|
const SizedBox(width: 16),
|
|
|
- SizedBox(
|
|
|
- width: 200,
|
|
|
+ Expanded(
|
|
|
child: TextField(
|
|
|
readOnly: true,
|
|
|
controller: TextEditingController(
|