Skip to content

Commit 2fed8ff

Browse files
committed
Polish audio bubble
1 parent e3d05a7 commit 2fed8ff

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

lib/src/widgets/audio_bubble.dart

+4-7
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ class _AudioBubbleState extends State<AudioBubble> {
2525
});
2626
}
2727

28-
@override
29-
void didChangeDependencies() async {
30-
super.didChangeDependencies();
31-
}
32-
3328
@override
3429
Widget build(BuildContext context) {
3530
return Padding(
@@ -43,7 +38,7 @@ class _AudioBubbleState extends State<AudioBubble> {
4338
height: 45,
4439
padding: const EdgeInsets.only(left: 12, right: 18),
4540
decoration: BoxDecoration(
46-
borderRadius: BorderRadius.circular(Globals.borderRadius),
41+
borderRadius: BorderRadius.circular(Globals.borderRadius - 10),
4742
color: Colors.black,
4843
),
4944
child: Column(
@@ -105,7 +100,9 @@ class _AudioBubbleState extends State<AudioBubble> {
105100
children: [
106101
Text(
107102
prettyDuration(
108-
snapshot.data ?? Duration.zero),
103+
snapshot.data! == Duration.zero
104+
? duration ?? Duration.zero
105+
: snapshot.data!),
109106
style: const TextStyle(
110107
fontSize: 10,
111108
color: Colors.grey,

0 commit comments

Comments
 (0)