class YoutubeTile extends StatelessWidget {
final String htmlContent;
final Color backgroundColor;
final bool scrolledTillEnd;
final Map tileContent;
const YoutubeTile({
Key key,
@required this.tileContent,
@required this.htmlContent,
@required this.backgroundColor,
@required this.scrolledTillEnd,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return FutureBuilder(
future: getYoutubeVid(),
builder: (BuildContext context, AsyncSnapshot<Widget> snapshot) {
if (snapshot.connectionState != ConnectionState.done) {
return Center(
child: CircularProgressIndicator(),
);
}
return snapshot.data;
});
}
Future<Widget> getYoutubeVid() async {
Widget htmlWidget = HtmlWidget(
htmlContent,
webViewJs: true,
baseUrl: Uri.parse("https://www.youtube.com/"),
bodyPadding: EdgeInsets.all(0),
unsupportedWebViewWorkaroundForIssue37: true,
webView: true,
);
await Future.delayed(Duration(milliseconds: 500));
return htmlWidget;
}
}
thats my output :
W/ContentCatcher(25720): Failed to notify a WebView
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
W/Choreographer(25720): OPTS_INPUT: First frame was drawed before optimized, so skip!
W/ContentCatcher(25720): Failed to notify a WebView
D/EgretLoader(25720): EgretLoader(Context context)
D/EgretLoader(25720): The context is not activity
D/EgretLoader(25720): EgretLoader(Context context)
D/EgretLoader(25720): The context is not activity
D/EgretLoader(25720): EgretLoader(Context context)
D/EgretLoader(25720): The context is not activity
D/EgretLoader(25720): EgretLoader(Context context)
D/EgretLoader(25720): The context is not activity
D/EgretLoader(25720): EgretLoader(Context context)
D/EgretLoader(25720): The context is not activity
D/EgretLoader(25720): EgretLoader(Context context)
D/EgretLoader(25720): The context is not activity
D/EgretLoader(25720): EgretLoader(Context context)
D/EgretLoader(25720): The context is not activity
D/EgretLoader(25720): EgretLoader(Context context)
D/EgretLoader(25720): The context is not activity
D/EgretLoader(25720): EgretLoader(Context context)
D/EgretLoader(25720): The context is not activity
D/EgretLoader(25720): EgretLoader(Context context)
D/EgretLoader(25720): The context is not activity
D/EgretLoader(25720): EgretLoader(Context context)
D/EgretLoader(25720): The context is not activity
D/EgretLoader(25720): EgretLoader(Context context)
D/EgretLoader(25720): The context is not activity
D/EgretLoader(25720): EgretLoader(Context context)
D/EgretLoader(25720): The context is not activity
I/Choreographer(25720): Skipped 240 frames! The application may be doing too much work on its main thread.
W/Looper (25720): Slow Frame: doFrame is 4014ms late
W/ContentCatcher(25720): Failed to notify a WebView
W/ContentCatcher(25720): Failed to notify a WebView
W/ContentCatcher(25720): Failed to notify a WebView
W/ContentCatcher(25720): Failed to notify a WebView
W/ContentCatcher(25720): Failed to notify a WebView
W/ContentCatcher(25720): Failed to notify a WebView
W/ContentCatcher(25720): Failed to notify a WebView
W/ContentCatcher(25720): Failed to notify a WebView
W/ContentCatcher(25720): Failed to notify a WebView
W/ContentCatcher(25720): Failed to notify a WebView
W/ContentCatcher(25720): Failed to notify a WebView
W/ContentCatcher(25720): Failed to notify a WebView
W/ContentCatcher(25720): Failed to notify a WebView
D/EgretLoader(25720): EgretLoader(Context context)
D/EgretLoader(25720): The context is not activity
D/EgretLoader(25720): EgretLoader(Context context)
D/EgretLoader(25720): The context is not activity
I/Choreographer(25720): Skipped 131 frames! The application may be doing too much work on its main thread.
W/Looper (25720): Slow Frame: doFrame is 2191ms late
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
I/OpenGLRenderer(25720): Davey! duration=2213ms; Flags=0, IntendedVsync=134205124061315, Vsync=134207307394561, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=134207316096884, AnimationStart=134207316257718, PerformTraversalsStart=134207318123186, DrawStart=134207320280582, SyncQueued=134207325555322, SyncStart=134207325638603, IssueDrawCommandsStart=134207325691416, SwapBuffers=134207337493916, FrameCompleted=134207338119436, DequeueBufferDuration=916000, QueueBufferDuration=243000,
I/OpenGLRenderer(25720): Davey! duration=2218ms; Flags=0, IntendedVsync=134205124061315, Vsync=134207307394561, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=134207316096884, AnimationStart=134207316257718, PerformTraversalsStart=134207318123186, DrawStart=134207338785009, SyncQueued=134207340104957, SyncStart=134207340602405, IssueDrawCommandsStart=134207340645843, SwapBuffers=134207342094801, FrameCompleted=134207342583811, DequeueBufferDuration=932000, QueueBufferDuration=304000,
I/OpenGLRenderer(25720): Davey! duration=2223ms; Flags=0, IntendedVsync=134205124061315, Vsync=134207307394561, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=134207316096884, AnimationStart=134207316257718, PerformTraversalsStart=134207318123186, DrawStart=134207343107770, SyncQueued=134207345188499, SyncStart=134207345280426, IssueDrawCommandsStart=134207345442093, SwapBuffers=134207347530166, FrameCompleted=134207347948551, DequeueBufferDuration=1416000, QueueBufferDuration=227000,
I/OpenGLRenderer(25720): Davey! duration=2230ms; Flags=0, IntendedVsync=134205124061315, Vsync=134207307394561, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=134207316096884, AnimationStart=134207316257718, PerformTraversalsStart=134207318123186, DrawStart=134207348787718, SyncQueued=134207352231884, SyncStart=134207352299957, IssueDrawCommandsStart=134207352355739, SwapBuffers=134207353919801, FrameCompleted=134207354496572, DequeueBufferDuration=1101000, QueueBufferDuration=174000,
I/OpenGLRenderer(25720): Davey! duration=2236ms; Flags=0, IntendedVsync=134205124061315, Vsync=134207307394561, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=134207316096884, AnimationStart=134207316257718, PerformTraversalsStart=134207318123186, DrawStart=134207354974176, SyncQueued=134207358138603, SyncStart=134207358475009, IssueDrawCommandsStart=134207358524072, SwapBuffers=134207359949124, FrameCompleted=134207360643134, DequeueBufferDuration=972000, QueueBufferDuration=225000,
I/OpenGLRenderer(25720): Davey! duration=2241ms; Flags=0, IntendedVsync=134205124061315, Vsync=134207307394561, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=134207316096884, AnimationStart=134207316257718, PerformTraversalsStart=134207318123186, DrawStart=134207361412457, SyncQueued=134207362874905, SyncStart=134207363109228, IssueDrawCommandsStart=134207363167093, SwapBuffers=134207364855270, FrameCompleted=134207365446780, DequeueBufferDuration=1146000, QueueBufferDuration=188000,
I/OpenGLRenderer(25720): Davey! duration=2246ms; Flags=0, IntendedVsync=134205124061315, Vsync=134207307394561, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=134207316096884, AnimationStart=134207316257718, PerformTraversalsStart=134207318123186, DrawStart=134207366316520, SyncQueued=134207368141416, SyncStart=134207368204280, IssueDrawCommandsStart=134207368251364, SwapBuffers=134207369742405, FrameCompleted=134207370373239, DequeueBufferDuration=980000, QueueBufferDuration=206000,
I/OpenGLRenderer(25720): Davey! duration=2250ms; Flags=0, IntendedVsync=134205124061315, Vsync=134207307394561, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=134207316096884, AnimationStart=134207316257718, PerformTraversalsStart=134207318123186, DrawStart=134207370716207, SyncQueued=134207372389697, SyncStart=134207372486103, IssueDrawCommandsStart=134207372538395, SwapBuffers=134207374305530, FrameCompleted=134207374997770, DequeueBufferDuration=1143000, QueueBufferDuration=232000,
I/OpenGLRenderer(25720): Davey! duration=2255ms; Flags=0, IntendedVsync=134205124061315, Vsync=134207307394561, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=134207316096884, AnimationStart=134207316257718, PerformTraversalsStart=134207318123186, DrawStart=134207375360947, SyncQueued=134207376979801, SyncStart=134207377062561, IssueDrawCommandsStart=134207377115374, SwapBuffers=134207378829332, FrameCompleted=134207379473759, DequeueBufferDuration=1090000, QueueBufferDuration=239000,
I/OpenGLRenderer(25720): Davey! duration=2259ms; Flags=0, IntendedVsync=134205124061315, Vsync=134207307394561, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=134207316096884, AnimationStart=134207316257718, PerformTraversalsStart=134207318123186, DrawStart=134207379856311, SyncQueued=134207381621884, SyncStart=134207381707041, IssueDrawCommandsStart=134207381765947, SwapBuffers=134207382965634, FrameCompleted=134207383688395, DequeueBufferDuration=569000, QueueBufferDuration=280000,
I/OpenGLRenderer(25720): Davey! duration=2264ms; Flags=0, IntendedVsync=134205124061315, Vsync=134207307394561, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=134207316096884, AnimationStart=134207316257718, PerformTraversalsStart=134207318123186, DrawStart=134207384078655, SyncQueued=134207385760166, SyncStart=134207385854853, IssueDrawCommandsStart=134207385907822, SwapBuffers=134207387461780, FrameCompleted=134207388156311, DequeueBufferDuration=904000, QueueBufferDuration=252000,
I/OpenGLRenderer(25720): Davey! duration=2267ms; Flags=0, IntendedVsync=134205124061315, Vsync=134207307394561, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=134207316096884, AnimationStart=134207316257718, PerformTraversalsStart=134207318123186, DrawStart=134207388547718, SyncQueued=134207390275582, SyncStart=134207390363551, IssueDrawCommandsStart=134207390417041, SwapBuffers=134207391671363, FrameCompleted=134207392146988, DequeueBufferDuration=766000, QueueBufferDuration=341000,
I/OpenGLRenderer(25720): Davey! duration=2273ms; Flags=0, IntendedVsync=134205124061315, Vsync=134207307394561, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=134207316096884, AnimationStart=134207316257718, PerformTraversalsStart=134207318123186, DrawStart=134207392487041, SyncQueued=134207394097197, SyncStart=134207394192041, IssueDrawCommandsStart=134207394276207, SwapBuffers=134207396575947, FrameCompleted=134207397733395, DequeueBufferDuration=1665000, QueueBufferDuration=817000,
W/ContentCatcher(25720): Failed to notify a WebView
W/ContentCatcher(25720): Failed to notify a WebView
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter
D/libEGL (25720): eglInitialize: exit(res=1)
D/libEGL (25720): eglInitialize: enter