Skip to content

Instantly share code, notes, and snippets.

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