Skip to content

Commit b74054c

Browse files
committed
Fix analysis hints in packages/flutter_html_audio
1 parent 0976e7e commit b74054c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/flutter_html_audio/lib/flutter_html_audio.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ class AudioWidget extends StatefulWidget {
2828
final RenderContext context;
2929
final AudioControllerCallback? callback;
3030

31-
AudioWidget({
31+
const AudioWidget({Key? key,
3232
required this.context,
3333
this.callback,
34-
});
34+
}) : super(key: key);
3535

3636
@override
3737
State<StatefulWidget> createState() => _AudioWidgetState();
@@ -78,16 +78,16 @@ class _AudioWidgetState extends State<AudioWidget> {
7878
@override
7979
Widget build(BuildContext bContext) {
8080
if (sources.isEmpty || sources.first == null) {
81-
return Container(height: 0, width: 0);
81+
return const SizedBox(height: 0, width: 0);
8282
}
8383

8484
return CssBoxWidget(
8585
key: widget.context.key,
8686
style: widget.context.style,
87+
childIsReplaced: true,
8788
child: ChewieAudio(
8889
controller: chewieAudioController!,
8990
),
90-
childIsReplaced: true,
9191
);
9292
}
9393
}

0 commit comments

Comments
 (0)