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().我尝试使用 border-radius 到父容器()。But it didn't work.但它没有用。
1 个解决方案
解决方案1
15 已采纳 2020-03-16 19:15:50
I got the result using ClipRRect.我使用 ClipRRect 得到了结果。Just wrapped the video player with ClipRRect with some radius and it worked fine.刚刚用具有一定半径的 ClipRRect 包裹了视频播放器,效果很好。