Commit 77f560c3 authored by Dio Maulana's avatar Dio Maulana

rapihin code

parent 126f410d
......@@ -44,7 +44,7 @@ class MyApp extends StatelessWidget {
initialRoute: '/',
routes: {
'/': (context) => const Splash(),
'/main': (context) => MainPage(),
'/main': (context) => const MainPage(),
'/error': (context) => ErrorPage(),
'/inputbase': (context) => const InputBaseUrl(),
'/settings-menu': (context) => const SettingsMenu()
......
......@@ -59,7 +59,8 @@ class _SplashState extends State<Splash> {
await prefs.setString('videoPromotionUrl', value[0].videoPromotionUrl);
await prefs.setString('images', value[0].images);
Future.delayed(const Duration(seconds: 1), () {
Navigator.push(context, MaterialPageRoute(builder: (_) => MainPage()));
Navigator.push(
context, MaterialPageRoute(builder: (_) => const MainPage()));
});
});
......
......@@ -31,12 +31,6 @@ class _VideoPromotionState extends State<VideoPromotion> {
Widget build(BuildContext context) {
return Center(
child: Container(
// color: Colors.green,
// margin: EdgeInsets.fromLTRB(
// MediaQuery.of(context).size.width * 0.05,
// MediaQuery.of(context).size.height * 0.1,
// MediaQuery.of(context).size.width * 0.05,
// MediaQuery.of(context).size.height * 0.1),
child: _controller!.value.isInitialized
? AspectRatio(
aspectRatio: _controller!.value.aspectRatio,
......
......@@ -56,15 +56,6 @@ class _YoutubeVideoState extends State<YoutubeVideo> {
? MediaQuery.of(context).size.width * 0.6
: MediaQuery.of(context).size.width * 1;
var heighYoutbe = MediaQuery.of(context).size.height;
// return Center(
// child: Container(
// color: widget.backgroundColor,
// child: Html(
// data:
// '<iframe width="$widthYoutbe" height="$heighYoutbe" src="https://www.youtube.com/embed/${widget.youtubeId}?rel=0&autoplay=1&mute=1&enablejsapi=1&controls=0&loop=1&playlist=${widget.youtubeId}&autohide=1&modestbranding=1" frameborder="0" clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>',
// ),
// ),
// );
return YoutubePlayerControllerProvider(
controller: _controller,
child: Container(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment