<p>Here is an example of how to rotate text in flutter. We are going to use RotatedBox widget to achieve this.</p> <p>);" color:="">color: #9cdcfe;](args) </p> <p>color: #569cd6;](class color: #4ec9b0;](MyApp color: #569cd6;](extends color: #4ec9b0;](StatelessWidget { color: #9cdcfe;](@ color: #9cdcfe;](override</p> <p>color: #4ec9b0;](Widget color: #dcdcaa;](build(color: #4ec9b0;](BuildContext color: #9cdcfe;](context) { color: #c586c0;](return color: #4ec9b0;](MaterialApp( color: #9cdcfe;](home: color: #4ec9b0;](Scaffold(color: #9cdcfe;](body: color: #4ec9b0;](MyHomePage()), ); } }</p> <p>color: #569cd6;](class color: #4ec9b0;](MyHomePage color: #569cd6;](extends color: #4ec9b0;](StatelessWidget { color: #9cdcfe;](@ color: #9cdcfe;](override</p> <p>color: #4ec9b0;](Widget color: #dcdcaa;](build(color: #4ec9b0;](BuildContext color: #9cdcfe;](context) { color: #c586c0;](return color: #4ec9b0;](Center( color: #9cdcfe;](child: color: #4ec9b0;](RotatedBox( color: #9cdcfe;](quarterTurns: color: #b5cea8;](3, color: #9cdcfe;](child: color: #4ec9b0;](Text( color: #ce9178;]('Hello World!', color: #9cdcfe;](style: color: #4ec9b0;](TextStyle(color: #9cdcfe;](fontSize: color: #b5cea8;](50), ), ), ); } } ` Thanks,Srikanth</p>
How to rotate text in flutter?
This Article is posted by seven.srikanth at 10/2/2021 7:52:19 AM
Check out our other latest articles
Safearea widget - How to avoid visual overlap with Notch on flutter mobile app?How to convert row of widgets into column of widgets in flutter based on screen size?
How to run Flutter programs from GitHub?
How to get screen orientation in flutter?
NavigationRail example in flutter
Tags: Rotate text; invert text;
Check out our other latest articles
Safearea widget - How to avoid visual overlap with Notch on flutter mobile app?How to convert row of widgets into column of widgets in flutter based on screen size?
How to run Flutter programs from GitHub?
How to get screen orientation in flutter?
NavigationRail example in flutter