Making a stack's with container

 body: Center(

  child: Stack(
children: [
Container(
width: 300,
height: 300,
color: Colors.red,
),
Positioned(
right: 50,
top: 45,
child: Container(
height: 200,
width: 200,
color: Colors.green,
),
),
Positioned(
right: 105,
top: 95,
child: Container(
height: 100,
width: 100,
color: Colors.blue,
),
),
Positioned(
top: 131,
right: 115,
child: Text("Minhaj Raza",style: TextStyle(fontSize: 15,fontWeight: FontWeight.bold,color: Colors.white),))
],
),
),

Comments

Popular posts from this blog

swapping the alternate values in given array's element ! 17/11/2022

Learning stage | c++ programs

c++ basic question