Skip to content

Commit

Permalink
Fixed text overflow issue in the container in the question sreen in A…
Browse files Browse the repository at this point in the history
…sk Me
  • Loading branch information
Eugene600 committed Oct 25, 2024
1 parent 05a9bb0 commit 771a9d2
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions lib/tools/ask_me/pages/question_screen.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import 'dart:async';
import 'package:academia/exports/barrel.dart';
import 'package:academia/tools/tools.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:get/get.dart';
import '../controllers/controllers.dart';
import '../models/models.dart';
Expand Down Expand Up @@ -357,23 +359,16 @@ class _QuestionScreenState extends State<QuestionScreen> {
if (isAnswered)
Padding(
padding: const EdgeInsets.only(top: 10.0),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const Text(
'Correct Answer:',
style: TextStyle(
fontSize: 16, fontWeight: FontWeight.bold),
child: Align(
alignment: Alignment.centerLeft,
child: Text(
'Correct Answer is $correctAnswer',
style: const TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
),
Flexible(
child: Text(
correctAnswer,
style: const TextStyle(
fontSize: 16, fontWeight: FontWeight.bold),
maxLines: null,
),
),
],
maxLines: 2,
),
),
),
],
Expand Down

0 comments on commit 771a9d2

Please sign in to comment.