I am trying to have border-radius for the video player in my flutter app. I tried to use border-radius to the parent Container(). But it didn't work.
   
                            
                            asked Dec 01 '22  09:12
                                                            I got the result using ClipRRect. Just wrapped the video player with ClipRRect with some radius and it worked fine.
    ClipRRect(
        borderRadius: BorderRadius.circular(15),
        child: VideoPlayer(_controller)
     )

                                    
                            answered Dec 04 '22  03:12
                                                                            If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With