-3

I'm trying to replicate a custom UI shape in Flutter, as shown in the red-marked area of the attached image. The design involves layering an icon over a uniquely clipped or curved container using a Stack. However, I'm unsure how to achieve this shape programmatically.

I’ve experimented with ClipPath, CustomPainter, and Positioned widgets inside a Stack, but I’m struggling to match the exact curvature and alignment seen in the image.

I want to create a reusable widget that mimics the red-marked shape, with the icon precisely positioned and the background clipped or styled accordingly. Ideally, the solution should be modular and responsive across screen sizes.

enter image description here

2
  • Ok, so where's your code? Commented 2 days ago
  • yep, whats your code? and btw you dont need a Stack: a simple Container or DecoratedBox with ShapeDecoration will do a trick Commented 2 days ago

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.