import 'package:flutter/material.dart';
class ExStack extends StatelessWidget {
const ExStack({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Stack(
// alignment: Alignment.cent,
children: [
Positioned(
top: 50,
left: 32,
child: Container(
width: 150,
height: 150,
color: Colors.red,
),
),
Positioned(
top: 100,
child: Container(
width: 100,
height: 100,
color: Colors.orange,
),
),
Positioned(
top: 0,
left: 0,
child: Container(
width: 50,
height: 50,
color: Colors.yellow,
),
)
],
),
),
);
}
}
