update
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:youtube_player_flutter/youtube_player_flutter.dart';
|
|
||||||
|
|
||||||
import '../../mih_components/mih_layout/mih_action.dart';
|
import '../../mih_components/mih_layout/mih_action.dart';
|
||||||
import '../../mih_components/mih_layout/mih_body.dart';
|
import '../../mih_components/mih_layout/mih_body.dart';
|
||||||
@@ -14,15 +13,15 @@ class MIHTest extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _MIHTestState extends State<MIHTest> {
|
class _MIHTestState extends State<MIHTest> {
|
||||||
late YoutubePlayerController videoController;
|
// late YoutubePlayerController videoController;
|
||||||
String videoLink = "https://www.youtube.com/watch?v=P2bM9eosJ_A";
|
// String videoLink = "https://www.youtube.com/watch?v=P2bM9eosJ_A";
|
||||||
@override
|
// @override
|
||||||
void initState() {
|
// void initState() {
|
||||||
videoController = YoutubePlayerController(
|
// videoController = YoutubePlayerController(
|
||||||
initialVideoId: "P2bM9eosJ_A",
|
// initialVideoId: "P2bM9eosJ_A",
|
||||||
);
|
// );
|
||||||
super.initState();
|
// super.initState();
|
||||||
}
|
// }
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
@@ -54,9 +53,9 @@ class _MIHTestState extends State<MIHTest> {
|
|||||||
body: MIHBody(
|
body: MIHBody(
|
||||||
borderOn: false,
|
borderOn: false,
|
||||||
bodyItems: [
|
bodyItems: [
|
||||||
YoutubePlayer(
|
// YoutubePlayer(
|
||||||
controller: videoController,
|
// controller: videoController,
|
||||||
),
|
// ),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
actionDrawer: null,
|
actionDrawer: null,
|
||||||
|
|||||||
Reference in New Issue
Block a user