class MyAppextends StatelessWidget {
@override
Widgetbuild(BuildContext context) {
return new MaterialApp(
title: 'RotatedBox cassette rotation exemplary'
home:Scaffold(
appBar:AppBar(
title:Text(
'RotatedBox exemplary rotary box',
style:TextStyle(color: Colors.white),
),
),
body:Center(
child:RotatedBox(
quarterTurns: -3, // number of rotation, a 90 °
child:Text(
'RotatedBox rotating box',
style:TextStyle(fontSize:28.0),
),
),
),
),
);
}
}