Skip to content

Commit 4ea79a1

Browse files
committed
fix overflow issues of waveform picker
1 parent 72afec4 commit 4ea79a1

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

open_earable/lib/controls_tab/views/audio_player.dart

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ class _AudioPlayerCardState extends State<AudioPlayerCard> {
311311
),
312312
SizedBox(
313313
height: 37.0,
314-
width: 80,
314+
width: 75,
315315
child: Padding(
316316
padding: const EdgeInsets.symmetric(horizontal: 0),
317317
child: TextField(
@@ -411,9 +411,13 @@ class _AudioPlayerCardState extends State<AudioPlayerCard> {
411411
child: Row(
412412
mainAxisAlignment: MainAxisAlignment.spaceBetween,
413413
children: [
414-
Text(
415-
_waveFormTextController.text,
416-
style: TextStyle(fontSize: 16.0),
414+
Expanded(
415+
child: Text(
416+
_waveFormTextController.text,
417+
style: TextStyle(fontSize: 16.0),
418+
overflow: TextOverflow.ellipsis,
419+
softWrap: false,
420+
),
417421
),
418422
Icon(Icons.arrow_drop_down),
419423
],

0 commit comments

Comments
 (0)