chore: Fix videoplayer centerized
This commit is contained in:
parent
733e4c7d7d
commit
9f4c264aee
1 changed files with 7 additions and 2 deletions
|
|
@ -95,15 +95,20 @@ class _EventVideoPlayerState extends State<EventVideoPlayer> {
|
|||
|
||||
final chewieManager = _chewieManager;
|
||||
return Material(
|
||||
color: Colors.black,
|
||||
child: SizedBox(
|
||||
width: 400,
|
||||
height: 300,
|
||||
child: chewieManager != null
|
||||
? Center(child: Chewie(controller: chewieManager))
|
||||
: Stack(
|
||||
children: [
|
||||
if (hasThumbnail)
|
||||
ImageBubble(widget.event)
|
||||
Center(
|
||||
child: ImageBubble(
|
||||
widget.event,
|
||||
tapToView: false,
|
||||
),
|
||||
)
|
||||
else
|
||||
BlurHash(hash: blurHash),
|
||||
Center(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue