I really don,t know how to create a parallelogram shape container in a flutter. I also found the flutter library for this but I can't use it because this is not supported by null safety.

You can use transform with skewX for this.
Container(
width: 400,
height: 100,
transform: Matrix4.skewX(-.3),
decoration: BoxDecoration(
border: Border.all(
color: Colors.black,
),
color: Colors.amber,
),
),
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With