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

rapihin code

parent 126f410d
...@@ -44,7 +44,7 @@ class MyApp extends StatelessWidget { ...@@ -44,7 +44,7 @@ class MyApp extends StatelessWidget {
initialRoute: '/', initialRoute: '/',
routes: { routes: {
'/': (context) => const Splash(), '/': (context) => const Splash(),
'/main': (context) => MainPage(), '/main': (context) => const MainPage(),
'/error': (context) => ErrorPage(), '/error': (context) => ErrorPage(),
'/inputbase': (context) => const InputBaseUrl(), '/inputbase': (context) => const InputBaseUrl(),
'/settings-menu': (context) => const SettingsMenu() '/settings-menu': (context) => const SettingsMenu()
......
...@@ -59,7 +59,8 @@ class _SplashState extends State<Splash> { ...@@ -59,7 +59,8 @@ class _SplashState extends State<Splash> {
await prefs.setString('videoPromotionUrl', value[0].videoPromotionUrl); await prefs.setString('videoPromotionUrl', value[0].videoPromotionUrl);
await prefs.setString('images', value[0].images); await prefs.setString('images', value[0].images);
Future.delayed(const Duration(seconds: 1), () { 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> { ...@@ -31,12 +31,6 @@ class _VideoPromotionState extends State<VideoPromotion> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Center( return Center(
child: Container( 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 child: _controller!.value.isInitialized
? AspectRatio( ? AspectRatio(
aspectRatio: _controller!.value.aspectRatio, aspectRatio: _controller!.value.aspectRatio,
......
...@@ -56,15 +56,6 @@ class _YoutubeVideoState extends State<YoutubeVideo> { ...@@ -56,15 +56,6 @@ class _YoutubeVideoState extends State<YoutubeVideo> {
? MediaQuery.of(context).size.width * 0.6 ? MediaQuery.of(context).size.width * 0.6
: MediaQuery.of(context).size.width * 1; : MediaQuery.of(context).size.width * 1;
var heighYoutbe = MediaQuery.of(context).size.height; 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( return YoutubePlayerControllerProvider(
controller: _controller, controller: _controller,
child: Container( 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