Skip to content

Instantly share code, notes, and snippets.

@loic-sharma
Last active January 11, 2025 00:00
Show Gist options
  • Save loic-sharma/2ef825637616928646ef19d5dca9db27 to your computer and use it in GitHub Desktop.
Save loic-sharma/2ef825637616928646ef19d5dca9db27 to your computer and use it in GitHub Desktop.
Center()
<| DecoratedBox(
BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(20),
boxShadow: [
BoxShadow(
color: Colors.grey.withValues(alpha: 0.5),
offset: Offset(3, 3)
)
],
),
)
<| Padding(EdgeInsets.all(20))
<| DecoratedBox(
BoxDecoration(
color: Colors.lightBlue.shade50,
shape: BoxShape.circle,
),
)
<| Padding(EdgeInsets.all(15))
<| DecoratedBox(
BoxDecoration(
color: Colors.lightBlue.shade300,
shape: BoxShape.circle,
),
)
<| Padding(EdgeInsets.all(10))
<| Icon(
Icons.home,
color: Colors.white,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment