Wouter Vandenputte
Wouter Vandenputte

Reputation: 2093

Flutter layout: placing a widget only half in a row

I want to layout two widgets in a Row where the first widget is simply centered (more or less) but the second widget should be rendered only half. I made this simple illustration with two containers (C1 and C2) where I want C2 to be displayed on the right but only the left part of it should be visible. The right part should be hidden. I experimented a lot with ClipRect and OverFlowBox but I seem to not be able to find a working solution.

enter image description here

Upvotes: 0

Views: 557

Answers (1)

Caio Reis
Caio Reis

Reputation: 74

You can do that with the positioned widget. In this video, you can check how it works! https://www.youtube.com/watch?v=EgtPleVwxBQ

Upvotes: 1

Related Questions