fix for mobile layout issues on mobile (#1314)

pull/1544/head
ggurdin 11 months ago committed by GitHub
parent 1317989db0
commit 78ce090696
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -243,17 +243,22 @@ class MultipleChoiceActivityState extends State<MultipleChoiceActivity> {
],
);
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,
);
}
}

@ -239,26 +239,23 @@ class WordZoomWidgetState extends State<WordZoomWidget> {
),
),
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<WordZoomWidget> {
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,
),
],
),

Loading…
Cancel
Save