I’m working on recreating a design similar to the corner radius used in the Zomato app. Despite my best efforts, I haven’t been able to replicate the exact design. Below, I’ve included images for reference.
Zomato’s design
I’m looking for guidance on achieving the same corner radius effect in my project. I’ve attempted several approaches, but none have matched the desired design.
Mine design
If anyone has experience or insights into replicating this specific design element, please share your knowledge. I would greatly appreciate any assistance, code examples, or suggestions to help me achieve this design.
Thank you in advance for your help!
3
Answers
Please check the implementation i have written a sample code, make changes as per your requirement.
You can wrap the search bar in row and add a Container in the with minimum possible width (i.e: 1) and height as compared to the text of Container such that it leaves equal position both from top and bottom. incase the size of container is 50 take the height as 30