|
|
|
@ -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),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|