优化问卷调查界面

hmxc
张萌 4 years ago
parent 416e9c96fb
commit 6590c166e9

@ -104,7 +104,7 @@ class _GoodsDetoPageState extends State<GoodsDetoPage> {
vertical: 50.w, horizontal: 32.w),
alignment: Alignment.topLeft,
constraints: BoxConstraints(
minHeight: 631.w + 96.w, minWidth: 686.w),
minHeight: 650.w + 96.w, minWidth: 686.w),
child: BeeRadio(
value: items[index].id, groupValues: _select),
),

@ -5,6 +5,7 @@ import 'package:akuCommunity/pages/things_page/widget/bee_list_view.dart';
import 'package:akuCommunity/ui/manager/questionnaire/questionnaire_detail_page.dart';
import 'package:akuCommunity/widget/bee_scaffold.dart';
import 'package:akuCommunity/widget/others/stack_avatar.dart';
import 'package:common_utils/common_utils.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:akuCommunity/utils/headers.dart';
@ -38,7 +39,13 @@ class _QuestionnairePageState extends State<QuestionnairePage> {
}
Widget _buildCard(QuestionnaireModel model) {
return Container(
return GestureDetector(
onTap: () {
QuestionnaireDetailPage(
id: model.id,
).to();
},
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8.w),
color: kForeGroundColor,
@ -88,7 +95,11 @@ class _QuestionnairePageState extends State<QuestionnairePage> {
color: ktextPrimary,
fontSize: 24.sp,
),
text: model.beginDate + '' + model.endDate,
text: DateUtil.formatDateStr(model.beginDate,
format: "MM月dd日 HH:mm") +
'' +
DateUtil.formatDateStr(model.endDate,
format: "MM月dd日 HH:mm"),
),
])),
],
@ -113,7 +124,9 @@ class _QuestionnairePageState extends State<QuestionnairePage> {
// EdgeInsets.symmetric(horizontal: 30.w, vertical: 8.w),
elevation: 0,
onPressed: () {
QuestionnaireDetailPage(id: model.id,).to();
QuestionnaireDetailPage(
id: model.id,
).to();
},
child: (_getButtonText(model.status))
.text
@ -126,6 +139,7 @@ class _QuestionnairePageState extends State<QuestionnairePage> {
)
],
),
).material(color: Colors.transparent),
);
}

Loading…
Cancel
Save