diff --git a/lib/ui/manager/questionnaire/questionnaire_detail_page.dart b/lib/ui/manager/questionnaire/questionnaire_detail_page.dart index 82abd6b7..e09bcdda 100644 --- a/lib/ui/manager/questionnaire/questionnaire_detail_page.dart +++ b/lib/ui/manager/questionnaire/questionnaire_detail_page.dart @@ -30,6 +30,7 @@ class _QuestionnaireDetailPageState extends State { List _radio = []; int _expanded; String _expand; + String _short; Widget _emptyWidget() { return Container(); } @@ -100,6 +101,42 @@ class _QuestionnaireDetailPageState extends State { ); } + Widget _shortAnswer(String title) { + return Container( + width: double.infinity, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + title.text.color(ktextPrimary).size(28.sp).make(), + 24.w.heightBox, + Container( + decoration: BoxDecoration( + border: Border.all( + width: 1.w, + color: Color(0xFFD4CFBE), + ), + borderRadius: BorderRadius.circular(8.w), + ), + child: TextField( + minLines: 5, + maxLines: 10, + scrollPadding: EdgeInsets.zero, + decoration: InputDecoration( + border: InputBorder.none, + contentPadding: + EdgeInsets.symmetric(horizontal: 32.w, vertical: 28.w), + isDense: true), + onChanged: (value) { + _short = value; + setState(() {}); + }, + ), + ) + ], + ), + ); + } + @override Widget build(BuildContext context) { return BeeScaffold( @@ -169,7 +206,8 @@ class _QuestionnaireDetailPageState extends State { _expandedCheck( 'title', _model.questionnaireTopicVoList.first - .questionnaireChoiceVoList) + .questionnaireChoiceVoList), + _shortAnswer('title') ], ), ),