chore: set max lines for word card phonetic transcription (#5005)
This commit is contained in:
parent
e316517c1e
commit
cb141a7c4c
2 changed files with 5 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ class PhoneticTranscriptionWidget extends StatefulWidget {
|
|||
final TextStyle? style;
|
||||
final double? iconSize;
|
||||
final Color? iconColor;
|
||||
final int? maxLines;
|
||||
|
||||
final VoidCallback? onTranscriptionFetched;
|
||||
|
||||
|
|
@ -29,6 +30,7 @@ class PhoneticTranscriptionWidget extends StatefulWidget {
|
|||
this.style,
|
||||
this.iconSize,
|
||||
this.iconColor,
|
||||
this.maxLines,
|
||||
this.onTranscriptionFetched,
|
||||
});
|
||||
|
||||
|
|
@ -119,6 +121,8 @@ class _PhoneticTranscriptionWidgetState
|
|||
textScaler: TextScaler.noScaling,
|
||||
style: widget.style ??
|
||||
Theme.of(context).textTheme.bodyMedium,
|
||||
maxLines: widget.maxLines,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
Tooltip(
|
||||
|
|
|
|||
|
|
@ -144,6 +144,7 @@ class WordZoomWidget extends StatelessWidget {
|
|||
LanguageModel.unknown,
|
||||
style: const TextStyle(fontSize: 14.0),
|
||||
iconSize: 24.0,
|
||||
maxLines: 2,
|
||||
)
|
||||
: WordAudioButton(
|
||||
text: token.content,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue