Skip to content

Instantly share code, notes, and snippets.

@sethladd
Forked from loic-sharma/backflow.dart
Last active January 15, 2025 22:31
Show Gist options
  • Save sethladd/73947b1325a8530e9aa7e60c5246159a to your computer and use it in GitHub Desktop.
Save sethladd/73947b1325a8530e9aa7e60c5246159a 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: .white,
borderRadius: .circular(20),
boxShadow: [
BoxShadow(
color: .grey.withValues(alpha: 0.5),
offset: Offset(3, 3)
),
],
),
padding: .all(20),
child: Container(
decoration: BoxDecoration(
color: .lightBlue.shade50,
shape: .circle,
),
padding: .all(15),
child: Container(
decoration: BoxDecoration(
color: .lightBlue.shade300,
shape: .circle,
),
padding: .all(10),
child: Icon(
.home,
color: .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