Я пытаюсь создать пользовательскую изогнутую панель приложения, как показано в примере ниже ![enter image description here](https://i.stack.imgur.com/78GH0.jpg)
и после многих попыток вот мой выстрел
![enter image description here](https://i.stack.imgur.com/ZTh7V.jpg)
исходный код:
class CustomShapeBorder extends ContinuousRectangleBorder {
@override
Path getOuterPath(Rect rect, {TextDirection textDirection}) {
final double innerCircleRadius = 150.0;
Path path = Path();
path.lineTo(0, rect.height);
path.cubicTo(
rect.width / 1.5 - 40, rect.height + innerCircleRadius - 40,
rect.width / 1.5 + 40, rect.height + innerCircleRadius - 40,
rect.width / 1.5+ 75, rect.height + 50
);
path.quadraticBezierTo(rect.width / 1.5 + (innerCircleRadius / 2) + 30, rect.height + 35, rect.width, rect.height);
path.lineTo(rect.width, 0.0);
path.close();
return path;
}
есть простой способ сделать это, например, SVG.