Skip to content

Instantly share code, notes, and snippets.

@adityapatnaik
Last active August 30, 2019 14:17
Show Gist options
  • Save adityapatnaik/71c9575c2b198692eefdd37e4d90516d to your computer and use it in GitHub Desktop.
Save adityapatnaik/71c9575c2b198692eefdd37e4d90516d to your computer and use it in GitHub Desktop.
Container Widget
Container(
color: Colors.cyanAccent,
child: Container(
child: Container(
width: MediaQuery.of(context).size.width,
height:MediaQuery.of(context).size.height,
padding: const EdgeInsets.all(15.0),
alignment: Alignment.bottomCenter,
decoration: BoxDecoration(
color: const Color(0xff7c94b6),
shape: BoxShape.rectangle,
border: Border.all(
color: Colors.lightBlueAccent,
width: 5.0,
),
borderRadius: BorderRadius.all(Radius.circular(20.0)),
boxShadow: [BoxShadow(
color: Colors.grey,
blurRadius: 5.0,
),],
gradient: new LinearGradient(
colors: [
Colors.indigo[800],
Colors.indigo[700],
Colors.indigo[600],
Colors.indigo[400],
],
begin: Alignment.topRight,
end: Alignment.bottomLeft,
stops: [0.1, 0.5, 0.7, 0.9],
),
),
)
)
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment