Answers for "flutter transform rotate icon"

2

how to rotate icon or text in flutter

Transform.rotate(
                 angle: 50, //set the angel 
                 child: Icon(Icons.format_bold,size: 50,
                 color: Colors.white,
                 ),
               ),
Posted by: Guest on March-04-2021
1

transform.rotate flutter

// This example rotates an orange box containing text around its center by fifteen degrees
Transform.rotate(
  angle: -math.pi / 12.0,
  child: Container(
    padding: const EdgeInsets.all(8.0),
    color: const Color(0xFFE8581C),
    child: const Text('Apartment for rent!'),
  ),
)
Posted by: Guest on November-01-2020

Browse Popular Code Answers by Language