chore: don't cut off emoji buttons into reading assistance input bar (#2547)

pull/1817/head
ggurdin 7 months ago committed by GitHub
parent 17ccf0e0ea
commit 6a9e4350d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -39,6 +39,7 @@ class MatchActivityCard extends StatelessWidget {
return Text(
choice,
style: TextStyle(fontSize: fontSize),
textAlign: TextAlign.center,
);
case ActivityTypeEnum.wordFocusListening:
return Icon(
@ -99,9 +100,6 @@ class MatchActivityCard extends StatelessWidget {
? cf.choiceContent
: null,
overlayController: overlayController,
fixedSize: activityType == ActivityTypeEnum.wordMeaning
? null
: fontSize * 2.1,
),
);
},

@ -21,7 +21,6 @@ class PracticeMatchItem extends StatefulWidget {
required this.isSelected,
this.audioContent,
required this.overlayController,
required this.fixedSize,
});
final Widget content;
@ -29,7 +28,6 @@ class PracticeMatchItem extends StatefulWidget {
final PracticeChoice constructForm;
final String? audioContent;
final MessageOverlayController overlayController;
final double? fixedSize;
final bool? isCorrect;
final bool isSelected;
@ -125,25 +123,24 @@ class PracticeMatchItemState extends State<PracticeMatchItem> {
final content = Row(
mainAxisSize: MainAxisSize.min,
children: [
Container(
height: widget.fixedSize,
width: widget.fixedSize,
alignment: Alignment.center,
padding: const EdgeInsets.all(8),
decoration: BoxDecoration(
color: color(context).withAlpha((0.4 * 255).toInt()),
borderRadius: BorderRadius.circular(AppConfig.borderRadius),
border: isSelected
? Border.all(
color: color(context).withAlpha(255),
width: 2,
)
: Border.all(
color: Colors.transparent,
width: 2,
),
Flexible(
child: Container(
padding: const EdgeInsets.all(8),
decoration: BoxDecoration(
color: color(context).withAlpha((0.4 * 255).toInt()),
borderRadius: BorderRadius.circular(AppConfig.borderRadius),
border: isSelected
? Border.all(
color: color(context).withAlpha(255),
width: 2,
)
: Border.all(
color: Colors.transparent,
width: 2,
),
),
child: widget.content,
),
child: widget.content,
),
],
);

Loading…
Cancel
Save