-
-
Save sbis04/a1c5802cb74bccb0f90f87843adf3348 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stack( | |
children: [ | |
AspectRatio( | |
aspectRatio: 16 / 9, | |
child: Container( | |
color: Colors.black, | |
width: double.maxFinite, | |
child: Center( | |
child: CircularProgressIndicator( | |
valueColor: AlwaysStoppedAnimation<Color>( | |
CustomColors.muxPink, | |
), | |
strokeWidth: 2, | |
), | |
), | |
), | |
), | |
_controller.value.initialized | |
? AspectRatio( | |
aspectRatio: _controller.value.aspectRatio, | |
child: VideoPlayer(_controller), | |
) | |
: AspectRatio( | |
aspectRatio: 16 / 9, | |
child: Container( | |
color: Colors.black, | |
width: double.maxFinite, | |
child: Center( | |
child: CircularProgressIndicator( | |
valueColor: AlwaysStoppedAnimation<Color>( | |
CustomColors.muxPink, | |
), | |
strokeWidth: 2, | |
), | |
), | |
), | |
), | |
], | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment