Skip to content

Commit 87e1575

Browse files
committed
Fix analysis hints in flutter_html_video
1 parent 42d3a72 commit 87e1575

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/flutter_html_video/lib/flutter_html_video.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ class VideoWidget extends StatefulWidget {
2525
final RenderContext context;
2626
final VideoControllerCallback? callback;
2727

28-
VideoWidget({
28+
const VideoWidget({Key? key,
2929
required this.context,
3030
this.callback,
31-
});
31+
}) : super(key: key);
3232

3333
@override
3434
State<StatefulWidget> createState() => _VideoWidgetState();
@@ -83,7 +83,7 @@ class _VideoWidgetState extends State<VideoWidget> {
8383
@override
8484
Widget build(BuildContext bContext) {
8585
if (_chewieController == null) {
86-
return Container(height: 0, width: 0);
86+
return const SizedBox(height: 0, width: 0);
8787
}
8888
final child = Container(
8989
key: widget.context.key,

0 commit comments

Comments
 (0)