appinioGmbH / flutter_packages

Dart and Flutter plugins/packages used and maintained by @appinioGmbH
187 stars 214 forks source link

[ BUG ] : Cannot get size from a render object that has not been through layout. #194

Closed trunghieuvn closed 8 months ago

trunghieuvn commented 9 months ago

Plugin name appinio_video_player-1.2.2

Describe the bug Cannot get size from a render object that has not been through layout.

To Reproduce Steps to reproduce the behavior:

image

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

trunghieuvn commented 9 months ago

error happened because in some frames first initial widget is not ready to render, will not have size in context, in line 110, you can change to optional type, can check null or some thing.....