import 'package:flutter/material.dart';
void main() {
runApp(
const MaterialApp(
debugShowCheckedModeBanner: false,
home: MyApp())
);
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return SafeArea(
child: Scaffold(
body: Container(
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.height * 0.5,
color: Colors.blue[100],
child: Align(
alignment: Alignment.topRight,
child: Text(
"Hello".toUpperCase(),
style: const TextStyle(
fontSize: 30.0,
fontWeight: FontWeight.bold
),
),
),
)),
);
}
}