chore: fix positioning in word zoom widget header buttons (#2664)

This commit is contained in:
ggurdin 2025-05-05 12:47:27 -04:00 committed by GitHub
parent 5d3674ec61
commit 5c5c56a100
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 0 deletions

View file

@ -72,6 +72,10 @@ class WordAudioButtonState extends State<WordAudioButton> {
tooltip:
_isPlaying ? L10n.of(context).stop : L10n.of(context).playAudio,
iconSize: widget.size,
style: IconButton.styleFrom(
padding: const EdgeInsets.all(0),
),
constraints: const BoxConstraints(),
onPressed: widget.callbackOverride ??
() async {
if (_isPlaying) {

View file

@ -168,6 +168,7 @@ class LemmaWidgetState extends State<LemmaWidget> {
}
return Row(
spacing: 8.0,
children: [
Text(
widget.token.lemma.text,

View file

@ -71,11 +71,15 @@ class WordZoomWidget extends StatelessWidget {
//@ggurdin - might need to play with size to properly center
SizedBox(
width: 24.0,
height: 24.0,
child: IconButton(
onPressed: () => overlayController.updateSelectedSpan(
token.text,
),
icon: const Icon(Icons.close),
style: IconButton.styleFrom(
padding: EdgeInsets.zero,
),
),
),
LemmaWidget(
@ -164,6 +168,7 @@ class WordZoomWidget extends StatelessWidget {
Wrap(
alignment: WrapAlignment.center,
crossAxisAlignment: WrapCrossAlignment.center,
spacing: 8.0,
children: [
...[
Text(