diff --git a/lib/ui/widgets/survey_widget.dart b/lib/ui/widgets/survey_widget.dart index 12204a1..71bafa0 100644 --- a/lib/ui/widgets/survey_widget.dart +++ b/lib/ui/widgets/survey_widget.dart @@ -91,17 +91,21 @@ class _SurveyWidgetState extends State { } Widget _buildUserResponseFormWidget() { - return DropdownButton( - hint: Text(tr("Respond to survey")), - items: survey.choices - .map( - (f) => DropdownMenuItem( - value: f, - child: Text(f.name), - ), - ) - .toList(), - onChanged: _respondToSurvey, + return ConstrainedBox( + constraints: BoxConstraints(maxWidth: 300), + child: DropdownButton( + isExpanded: true, + hint: Text(tr("Respond to survey")), + items: survey.choices + .map( + (f) => DropdownMenuItem( + value: f, + child: Text(f.name), + ), + ) + .toList(), + onChanged: _respondToSurvey, + ), ); }