修复设施设备检查按钮状态不正确

hmxc
张萌 4 years ago
parent 637c0910d0
commit ecd0f7085f

@ -40,7 +40,7 @@ class _FacilitiesInspectReportPageState
List<File> _selfPhotos; List<File> _selfPhotos;
List<File> _scenePhotos; List<File> _scenePhotos;
String _describtion; String _describtion;
int _scene = 0; int _scene = 1;// 1 2
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return AkuScaffold( return AkuScaffold(
@ -144,7 +144,7 @@ class _FacilitiesInspectReportPageState
children: [ children: [
Row( Row(
children: [ children: [
'2.$title'.text.color(kTextPrimaryColor).size(32.sp).make() '$title'.text.color(kTextPrimaryColor).size(32.sp).make()
], ],
), ),
32.w.heightBox, 32.w.heightBox,
@ -152,20 +152,20 @@ class _FacilitiesInspectReportPageState
children: [ children: [
AkuSingleCheckButton( AkuSingleCheckButton(
text: '正常', text: '正常',
value: 0, value: 1,
gropValue: _scene, gropValue: _scene,
onPressed: () { onPressed: () {
_scene = 0; _scene = 1;
setState(() {}); setState(() {});
}, },
), ),
80.w.widthBox, 80.w.widthBox,
AkuSingleCheckButton( AkuSingleCheckButton(
text: '异常', text: '异常',
value: 1, value: 2,
gropValue: _scene, gropValue: _scene,
onPressed: () { onPressed: () {
_scene = 1; _scene = 2;
setState(() {}); setState(() {});
}, },
), ),

Loading…
Cancel
Save