How to prevent a child Text from Rotating along with Parent?
This is sample code of what I have. I do not want the Text widget to rotate along with the parent Container. Is there an efficient way of doing it? Else I may have to wrap the child Text in another Transform.rotate and rotate it back.
class MyRotateContainer extends StatefulWidget {
@override
_MyRotateContainerState createState() => new _MyRotateContainerState();
}
class _MyRotateContainerState extends State<MyRotateContainer> {
@override
Widget build(BuildContext context) {
return new Transform.rotate(
angle: (30.0 * PI / 180.0),
child: new Container(
child: new Text(
'SOME TEXT',
textScaleFactor: 2.0,
),
));
}
}

