Skip to content

Commit

Permalink
Polish audio bubble
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodepapaya committed Sep 25, 2021
1 parent e3d05a7 commit 2fed8ff
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/src/widgets/audio_bubble.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ class _AudioBubbleState extends State<AudioBubble> {
});
}

@override
void didChangeDependencies() async {
super.didChangeDependencies();
}

@override
Widget build(BuildContext context) {
return Padding(
Expand All @@ -43,7 +38,7 @@ class _AudioBubbleState extends State<AudioBubble> {
height: 45,
padding: const EdgeInsets.only(left: 12, right: 18),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(Globals.borderRadius),
borderRadius: BorderRadius.circular(Globals.borderRadius - 10),
color: Colors.black,
),
child: Column(
Expand Down Expand Up @@ -105,7 +100,9 @@ class _AudioBubbleState extends State<AudioBubble> {
children: [
Text(
prettyDuration(
snapshot.data ?? Duration.zero),
snapshot.data! == Duration.zero
? duration ?? Duration.zero
: snapshot.data!),
style: const TextStyle(
fontSize: 10,
color: Colors.grey,
Expand Down

0 comments on commit 2fed8ff

Please sign in to comment.