I want to create a shape like this and animate a container in it. However, every single solution I found on the internet, solves the problem with CustomPainter or CustomClipper. I don't want that. When I use these, I can't fit the containers inside this shape and can achieve what I want. Figured it out, ShapeBorder could be what I want but there isn't enough documentation for this. Can you help me to create this?
#psink
Related
I am new to gestures and I don't get any proper solution for achieving my request,
Can anyone help me in dragging a container up and down vertically to a certain point?.
I need to achieve something like the below image.
Thanks in advance.
Consider using draggable home if you want a ready-made similar effect.
If you want to replicate the goggle maps UI one-on-one, consider reading DraggableScrollableSheet and make one your own.
Hope it helps!
I want to achieve a curved container like this. I tried with cliprrect but couldn't really achieve that shape. I found CustomPaint and looked into it, but not really understand how to use it or how to begin to draw that shape.
Trying to reach design from screenshot.
All elements in circle must be able to work with logic which include change color.
Gray and green'ish one elements are disabled and blue'ish is active.
Probably I should use some kind of canvas to get this done, but I am not sure.
Thanks for all response!
Edit:
Very important part of logic. I want to dynamicaly change number of those circular elements.
You would need to use custom painter to achieve this.
You can check out Flutter shape maker! its a tool that can help with drawing this out.
Actually i am trying to make the following UI but i am not able to achieve that sort of hole or transparent layer below the yellow button. Have tried glassmorphism plugin and backgrop filters to acheive the glass frost efftet. Just would like to know how to make that hole.
Desired UI:-
You can use clipRRect or clipRect to make this design. these two widgets will help you cut/clip the container in the required shape.
For more information, you can have reference from here.
I'm generating multiple widgets(Containers in this case) using a ListView.builder and I also use a custom ClipPath to give a custom shape to them.
I was wondering if would it be possible to translate or somehow overlay those list items in order to place them so that the background(black area in the attached screenshot) would be covered. By that I mean I want to place them right under each other, like puzzle pieces. To be able to fit them right under each other would probably mean they would have to be overlayed somehow. Was googling but without any success.
Hopefully there's some Flutter experts out there who are nice enough to guide me. Thanks a lot!