creating a background coloured box in flutter;
body: Container(
padding: EdgeInsets.all(35),
margin: EdgeInsets.all(20),
decoration: BoxDecoration(
border: Border.all(color: Colors.black, width: 4),
borderRadius: BorderRadius.circular(8),
boxShadow: [
new BoxShadow(
color: Colors.green,
offset: new Offset(6.0, 6.0),
),
],
),
child: Text("Hello! I am Minhaj Raza and i want to become developer!!",
style: TextStyle(fontSize: 30)),
),
);
Comments
Post a Comment