Home > Blockchain >  How to rotate a box in flutter?
How to rotate a box in flutter?

Time:10-21

I am trying to achieve a clipper as shown in the below image. I am not getting what i have been expecting can anyone help me? Clipper

CodePudding user response:

For this Clipper as shown in your image, you can do it like this :

Transform.rotate(
      angle: -5,
      child: Container(
        decoration: BoxDecoration(
          borderRadius: BorderRadius.circular(20),
          color: Colors.black,
        ),
        height: 100,
        width: 100,
      ),
    ),
  • Related