'finding the best way to design this? [closed]
Solution 1:[1]
A simpler approach would be to use Transform on the Container(); the only limitation here would be to stop Container's children from being skewed too. You can use the Transform class as a starting point for this, like this:
Transform(
alignment: FractionalOffset.center,
transform: Matrix4.identity()
..setEntry(3, 2, 0.01)
..rotateY(-(5 / (180 / math.pi))),
child: ItemContainerWidget(),
)
That would give you something like this -
Solution 2:[2]
Please refer to this link
flutter_custom_clippers: ^2.0.0
ClipPath(
clipper: RoundedDiagonalPathClipper(),
child: Container(
height: 320,
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(50.0)),
color: Colors.orange,
),
child: Center(child: Text("RoundedDiagonalPathClipper()")),
),
),
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | atketan |
| Solution 2 | Tejaswini Dev |


