Skip to content

Instantly share code, notes, and snippets.

@Nikhil725051
Created April 16, 2022 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nikhil725051/ceb1b7f3bda455284c488da98beacdc9 to your computer and use it in GitHub Desktop.
Save Nikhil725051/ceb1b7f3bda455284c488da98beacdc9 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
void main()
{
runApp(MyApp());
}
class MyApp extends StatelessWidget
{
@override
Widget build(BuildContext context)
{
return MaterialApp(
home: MyHomePage()
);
}
}
class MyHomePage extends StatelessWidget
{
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('RotatedBox Example '),
backgroundColor: Colors.purple,
),
body: Center(
child: RotatedBox(
quarterTurns: 3,
child: const Text('DeveloperXon',
style: TextStyle(fontSize: 50)),
)
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment