File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,6 @@ class _AudioBubbleState extends State<AudioBubble> {
25
25
});
26
26
}
27
27
28
- @override
29
- void didChangeDependencies () async {
30
- super .didChangeDependencies ();
31
- }
32
-
33
28
@override
34
29
Widget build (BuildContext context) {
35
30
return Padding (
@@ -43,7 +38,7 @@ class _AudioBubbleState extends State<AudioBubble> {
43
38
height: 45 ,
44
39
padding: const EdgeInsets .only (left: 12 , right: 18 ),
45
40
decoration: BoxDecoration (
46
- borderRadius: BorderRadius .circular (Globals .borderRadius),
41
+ borderRadius: BorderRadius .circular (Globals .borderRadius - 10 ),
47
42
color: Colors .black,
48
43
),
49
44
child: Column (
@@ -105,7 +100,9 @@ class _AudioBubbleState extends State<AudioBubble> {
105
100
children: [
106
101
Text (
107
102
prettyDuration (
108
- snapshot.data ?? Duration .zero),
103
+ snapshot.data! == Duration .zero
104
+ ? duration ?? Duration .zero
105
+ : snapshot.data! ),
109
106
style: const TextStyle (
110
107
fontSize: 10 ,
111
108
color: Colors .grey,
You can’t perform that action at this time.
0 commit comments