diff --git a/lib/pangea/widgets/practice_activity/multiple_choice_activity.dart b/lib/pangea/widgets/practice_activity/multiple_choice_activity.dart index 42744eb9bf..31cda61336 100644 --- a/lib/pangea/widgets/practice_activity/multiple_choice_activity.dart +++ b/lib/pangea/widgets/practice_activity/multiple_choice_activity.dart @@ -243,17 +243,22 @@ class MultipleChoiceActivityState extends State { ], ); - return ConstrainedBox( - constraints: const BoxConstraints( - maxWidth: AppConfig.toolbarMinWidth, - maxHeight: AppConfig.toolbarMaxHeight, - ), - child: SingleChildScrollView( - child: Padding( - padding: const EdgeInsets.all(20), - child: content, - ), - ), - ); + return practiceActivity.activityType == ActivityTypeEnum.hiddenWordListening + ? ConstrainedBox( + constraints: const BoxConstraints( + maxWidth: AppConfig.toolbarMinWidth, + maxHeight: AppConfig.toolbarMaxHeight, + ), + child: SingleChildScrollView( + child: Padding( + padding: const EdgeInsets.all(20), + child: content, + ), + ), + ) + : Padding( + padding: const EdgeInsets.all(20), + child: content, + ); } } diff --git a/lib/pangea/widgets/word_zoom/word_zoom_widget.dart b/lib/pangea/widgets/word_zoom/word_zoom_widget.dart index a5a814b73e..a22d0d53d2 100644 --- a/lib/pangea/widgets/word_zoom/word_zoom_widget.dart +++ b/lib/pangea/widgets/word_zoom/word_zoom_widget.dart @@ -239,26 +239,23 @@ class WordZoomWidgetState extends State { ), ), if (_activityType != null) - Row( - mainAxisSize: MainAxisSize.min, - mainAxisAlignment: MainAxisAlignment.center, - children: [ - if (_showActivityCard(_activityType)) - PracticeActivityCard( - pangeaMessageEvent: widget.messageEvent, - targetTokensAndActivityType: - TargetTokensAndActivityType( - tokens: [widget.token], - activityType: _activityType!, - ), - overlayController: widget.overlayController, - morphFeature: _selectedMorphFeature, - wordDetailsController: this, - ) - else - _activityAnswer, - ], - ) + if (_showActivityCard(_activityType)) + PracticeActivityCard( + pangeaMessageEvent: widget.messageEvent, + targetTokensAndActivityType: TargetTokensAndActivityType( + tokens: [widget.token], + activityType: _activityType!, + ), + overlayController: widget.overlayController, + morphFeature: _selectedMorphFeature, + wordDetailsController: this, + ) + else + Row( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.center, + children: [_activityAnswer], + ) else ContextualTranslationWidget( token: widget.token, @@ -269,16 +266,11 @@ class WordZoomWidgetState extends State { definition: _definition, setDefinition: _setDefinition, ), - Row( - mainAxisSize: MainAxisSize.min, - children: [ - MorphologicalListWidget( - token: widget.token, - setMorphFeature: _setSelectedMorphFeature, - selectedMorphFeature: _selectedMorphFeature, - completedActivities: completedMorphActivities, - ), - ], + MorphologicalListWidget( + token: widget.token, + setMorphFeature: _setSelectedMorphFeature, + selectedMorphFeature: _selectedMorphFeature, + completedActivities: completedMorphActivities, ), ], ),