我怎样才能制作这些顶部 2 角 Radius Custom Clipper

问题描述 投票:0回答:0

Click to see image

Path getClip(Size size) {
    var path = Path();
    path.lineTo(25,0);
    path.lineTo(0, size.height);
    path.lineTo(size.width, size.height);
    path.lineTo(size.width-25, 0);
    return path;
  }

这是我的自定义剪刀,我想制作前 2 个角半径

flutter clip-path flutter-clippath customclipper
© www.soinside.com 2019 - 2024. All rights reserved.