Skip to content

Instantly share code, notes, and snippets.

@buraktabn
Created February 4, 2020 04:32
Show Gist options
  • Save buraktabn/41452d824269606b66c5e3c0e3d327c2 to your computer and use it in GitHub Desktop.
Save buraktabn/41452d824269606b66c5e3c0e3d327c2 to your computer and use it in GitHub Desktop.
_cardBoxDecoration(Color color) => BoxDecoration(
color: color,
borderRadius: BorderRadius.all(Radius.circular(20)),
boxShadow: [
BoxShadow(
color: Color(0x1a000000),
blurRadius: 20,
spreadRadius: 0,
offset: Offset(0, 10))
]);
class _AppointmentsCart extends StatelessWidget {
final double height;
_AppointmentsCart({this.height});
@override
Widget build(BuildContext context) {
return Container(
height: height,
decoration: _cardBoxDecoration(Colors.white),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
IconButton(
icon: Icon(
FontAwesomeIcons.checkCircle,
color: _checkGrey,
size: 20,
),
onPressed: () {},
),
IconButton(
icon: Icon(
Icons.more_horiz,
color: _grey,
size: 20,
),
onPressed: () {},
)
],
),
Padding(
padding: EdgeInsets.only(left: 15),
child: Text(
'Today',
style: TextStyle(fontSize: 18),
),
),
Padding(
padding: const EdgeInsets.all(15),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: <Widget>[
Text(
'5',
style: TextStyle(fontSize: 24, color: _titleGrey),
),
Text(
'Appoinemts',
style: TextStyle(fontSize: 12, color: _subtitleGrey),
)
],
),
)
],
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment