You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
void initState() {
super.initState(); controller = VideoPlayerController.network(
'https://www.youtube.com/watch?v=2vpB9IwbjdA')
..initialize().then(() {
// Ensure the first frame is shown after the video is initialized, even before the play button has been pressed.
setState(() {});
});
}
void dispose() {
super.dispose();
_controller.dispose();
}
`import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
import 'package:ext_video_player/ext_video_player.dart';
class FirstAidVideo extends StatefulWidget {
@OverRide
_FirstAidVideoState createState() => _FirstAidVideoState();
}
class _FirstAidVideoState extends State {
VideoPlayerController _controller;
void initState() {
super.initState();
controller = VideoPlayerController.network(
'https://www.youtube.com/watch?v=2vpB9IwbjdA')
..initialize().then(() {
// Ensure the first frame is shown after the video is initialized, even before the play button has been pressed.
setState(() {});
});
}
void dispose() {
super.dispose();
_controller.dispose();
}
@OverRide
Widget build(BuildContext context) {
`
The text was updated successfully, but these errors were encountered: