1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-26 06:49:22 +00:00

Fix overflow issue

This commit is contained in:
Pierre HUBERT 2020-04-25 17:32:25 +02:00
parent e1f8ad1466
commit 8bd937420e

View File

@ -91,17 +91,21 @@ class _SurveyWidgetState extends State<SurveyWidget> {
} }
Widget _buildUserResponseFormWidget() { Widget _buildUserResponseFormWidget() {
return DropdownButton<SurveyChoice>( return ConstrainedBox(
hint: Text(tr("Respond to survey")), constraints: BoxConstraints(maxWidth: 300),
items: survey.choices child: DropdownButton<SurveyChoice>(
.map( isExpanded: true,
(f) => DropdownMenuItem<SurveyChoice>( hint: Text(tr("Respond to survey")),
value: f, items: survey.choices
child: Text(f.name), .map(
), (f) => DropdownMenuItem<SurveyChoice>(
) value: f,
.toList(), child: Text(f.name),
onChanged: _respondToSurvey, ),
)
.toList(),
onChanged: _respondToSurvey,
),
); );
} }