mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Fix overflow issue
This commit is contained in:
		@@ -91,17 +91,21 @@ class _SurveyWidgetState extends State<SurveyWidget> {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  Widget _buildUserResponseFormWidget() {
 | 
			
		||||
    return DropdownButton<SurveyChoice>(
 | 
			
		||||
      hint: Text(tr("Respond to survey")),
 | 
			
		||||
      items: survey.choices
 | 
			
		||||
          .map(
 | 
			
		||||
            (f) => DropdownMenuItem<SurveyChoice>(
 | 
			
		||||
              value: f,
 | 
			
		||||
              child: Text(f.name),
 | 
			
		||||
            ),
 | 
			
		||||
          )
 | 
			
		||||
          .toList(),
 | 
			
		||||
      onChanged: _respondToSurvey,
 | 
			
		||||
    return ConstrainedBox(
 | 
			
		||||
      constraints: BoxConstraints(maxWidth: 300),
 | 
			
		||||
      child: DropdownButton<SurveyChoice>(
 | 
			
		||||
        isExpanded: true,
 | 
			
		||||
        hint: Text(tr("Respond to survey")),
 | 
			
		||||
        items: survey.choices
 | 
			
		||||
            .map(
 | 
			
		||||
              (f) => DropdownMenuItem<SurveyChoice>(
 | 
			
		||||
                value: f,
 | 
			
		||||
                child: Text(f.name),
 | 
			
		||||
              ),
 | 
			
		||||
            )
 | 
			
		||||
            .toList(),
 | 
			
		||||
        onChanged: _respondToSurvey,
 | 
			
		||||
      ),
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user