chore: fix some spacing issues on small screens (#1930)
This commit is contained in:
parent
6618fdeb46
commit
91c13b56b8
2 changed files with 25 additions and 10 deletions
|
|
@ -28,9 +28,14 @@ class MessageMeaningCard extends StatelessWidget {
|
|||
color: Theme.of(context).colorScheme.primary,
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
TextButton(
|
||||
onPressed: () => controller.onRequestForMeaningChallenge(),
|
||||
child: Text(L10n.of(context).clickForMeaningActivity),
|
||||
Flexible(
|
||||
child: TextButton(
|
||||
onPressed: () => controller.onRequestForMeaningChallenge(),
|
||||
child: Text(
|
||||
L10n.of(context).clickForMeaningActivity,
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
|
|
@ -208,18 +208,28 @@ class MultipleChoiceActivityState extends State<MultipleChoiceActivity> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final PracticeActivityModel practiceActivity = widget.currentActivity;
|
||||
final question = practiceActivity.content.question;
|
||||
|
||||
final content = Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
practiceActivity.content.question,
|
||||
style: AppConfig.messageTextStyle(
|
||||
widget.event,
|
||||
Theme.of(context).colorScheme.primary,
|
||||
).merge(const TextStyle(fontStyle: FontStyle.italic)),
|
||||
),
|
||||
if (question.isNotEmpty)
|
||||
Text(
|
||||
question,
|
||||
style: AppConfig.messageTextStyle(
|
||||
widget.event,
|
||||
Theme.of(context).colorScheme.primary,
|
||||
).merge(const TextStyle(fontStyle: FontStyle.italic)),
|
||||
),
|
||||
if (question.isNotEmpty)
|
||||
Text(
|
||||
question,
|
||||
style: AppConfig.messageTextStyle(
|
||||
widget.event,
|
||||
Theme.of(context).colorScheme.primary,
|
||||
).merge(const TextStyle(fontStyle: FontStyle.italic)),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
if (practiceActivity.activityType ==
|
||||
ActivityTypeEnum.wordFocusListening)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue