|
|
@ -85,7 +85,7 @@ class _FixedSubmitPageState extends State<FixedSubmitPage> {
|
|
|
|
Widget _buildCard(FixedSubmitModel model) {
|
|
|
|
Widget _buildCard(FixedSubmitModel model) {
|
|
|
|
return AnimatedPositioned(
|
|
|
|
return AnimatedPositioned(
|
|
|
|
top: 0,
|
|
|
|
top: 0,
|
|
|
|
left: (_canSkew(4) && _isEdit) ? 55.w : 0,
|
|
|
|
left: (_canSkew(model.status) && _isEdit) ? 55.w : 0,
|
|
|
|
bottom: 0,
|
|
|
|
bottom: 0,
|
|
|
|
duration: Duration(milliseconds: 300),
|
|
|
|
duration: Duration(milliseconds: 300),
|
|
|
|
curve: Curves.easeInOutCubic,
|
|
|
|
curve: Curves.easeInOutCubic,
|
|
|
@ -159,30 +159,33 @@ class _FixedSubmitPageState extends State<FixedSubmitPage> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Widget _buildCheckBox(FixedSubmitModel model) {
|
|
|
|
Widget _buildCheckBox(FixedSubmitModel model) {
|
|
|
|
return GestureDetector(
|
|
|
|
return
|
|
|
|
onTap: () {
|
|
|
|
// GestureDetector(
|
|
|
|
if (_selected.contains(model.id)) {
|
|
|
|
// onTap: () {
|
|
|
|
_selected.remove(model.id);
|
|
|
|
// if (_selected.contains(model.id)) {
|
|
|
|
} else {
|
|
|
|
// _selected.remove(model.id);
|
|
|
|
_selected.add(model.id);
|
|
|
|
// } else {
|
|
|
|
}
|
|
|
|
// _selected.add(model.id);
|
|
|
|
setState(() {});
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
// setState(() {});
|
|
|
|
child: Container(
|
|
|
|
// },
|
|
|
|
|
|
|
|
// child:
|
|
|
|
|
|
|
|
Container(
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
constraints: BoxConstraints(minHeight: 384.w, minWidth: 686.w),
|
|
|
|
constraints: BoxConstraints(minHeight: 384.w, minWidth: 686.w),
|
|
|
|
// child: FixedCheckBox(
|
|
|
|
child: FixedCheckBox(
|
|
|
|
// onChanged: (isSelect) {
|
|
|
|
key:ValueKey(model.id),
|
|
|
|
// if (isSelect) {
|
|
|
|
onChanged: (isSelect) {
|
|
|
|
// _selected.add(model.id);
|
|
|
|
if (isSelect) {
|
|
|
|
// } else {
|
|
|
|
_selected.add(model.id);
|
|
|
|
// _selected.remove(model.id);
|
|
|
|
} else {
|
|
|
|
// }
|
|
|
|
_selected.remove(model.id);
|
|
|
|
// setState(() {});
|
|
|
|
}
|
|
|
|
// },
|
|
|
|
setState(() {});
|
|
|
|
// ),
|
|
|
|
},
|
|
|
|
child: BeeRadio(value: model.id, groupValues: _selected),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// child: BeeRadio(value: model.id, groupValues: _selected),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -259,8 +262,8 @@ class _FixedSubmitPageState extends State<FixedSubmitPage> {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
).expand(),
|
|
|
|
).expand(),
|
|
|
|
MaterialButton(
|
|
|
|
MaterialButton(
|
|
|
|
disabledColor: kDarkSubColor,
|
|
|
|
disabledColor: Colors.white.withOpacity(0.5),
|
|
|
|
disabledTextColor: ktextSubColor,
|
|
|
|
disabledTextColor: ktextSubColor.withOpacity(0.8),
|
|
|
|
textColor: ktextPrimary,
|
|
|
|
textColor: ktextPrimary,
|
|
|
|
onPressed: _isEdit
|
|
|
|
onPressed: _isEdit
|
|
|
|
? _selected.isEmpty
|
|
|
|
? _selected.isEmpty
|
|
|
|