Rotate

Utilities for controlling the rotation of widgets.

The rotation construct utilities are defined inside StiloTransformRotate
name rotation
rotate0
0deg
rotate1
1deg
rotate2
2deg
rotate3
3deg
rotate6
6deg
rotate12
12deg
rotate45
45deg
rotate90
90deg
rotate180
180deg

Usage Example

Center(
    child: Row(
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        StiloTransformRotate.rotate45(
          child: Container(
            width: StiloWidth.w64,
            height: StiloHeight.h36,
            decoration: BoxDecoration(
              color: StiloColor.blue[500],
              borderRadius: StiloBorderRadius.allMd,
              boxShadow: StiloBoxShadow.xl,
            ),
          ),
        ),
      ],
    ),
  )