Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Widget build(BuildContext context) {
- return Container(
- margin: EdgeInsets.symmetric(vertical: 8.0, horizontal: 16.0),
- child: Material(
- shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(4.0)),
- elevation: 6.0,
- shadowColor: Colors.grey[50],
- child: InkWell(
- onTap: () {},
- child: Container(
- decoration: BoxDecoration(
- gradient: LinearGradient(
- begin: AlignmentDirectional.bottomStart,
- end: AlignmentDirectional.topEnd,
- colors: [
- Colors.yellow[800],
- Colors.yellow[700],
- ],
- ),
- ),
- padding: EdgeInsets.all(16.0),
- child: Text(
- widget.title,
- style: TextStyle(
- fontSize: 20.0,
- color: Colors.white,
- ),
- ),
- ),
- ),
- ),
- );
- }
Add Comment
Please, Sign In to add comment