File tree 1 file changed +4
-4
lines changed
packages/flutter_html_audio/lib 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ class AudioWidget extends StatefulWidget {
28
28
final RenderContext context;
29
29
final AudioControllerCallback ? callback;
30
30
31
- AudioWidget ({
31
+ const AudioWidget ({Key ? key,
32
32
required this .context,
33
33
this .callback,
34
- });
34
+ }) : super (key : key) ;
35
35
36
36
@override
37
37
State <StatefulWidget > createState () => _AudioWidgetState ();
@@ -78,16 +78,16 @@ class _AudioWidgetState extends State<AudioWidget> {
78
78
@override
79
79
Widget build (BuildContext bContext) {
80
80
if (sources.isEmpty || sources.first == null ) {
81
- return Container (height: 0 , width: 0 );
81
+ return const SizedBox (height: 0 , width: 0 );
82
82
}
83
83
84
84
return CssBoxWidget (
85
85
key: widget.context.key,
86
86
style: widget.context.style,
87
+ childIsReplaced: true ,
87
88
child: ChewieAudio (
88
89
controller: chewieAudioController! ,
89
90
),
90
- childIsReplaced: true ,
91
91
);
92
92
}
93
93
}
You can’t perform that action at this time.
0 commit comments