Last active
January 29, 2020 21:47
-
-
Save JonathanMonga/93e2d89a65a772013391b68a0c94e097 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PaddingWidget extends StatelessWidget { | |
const PaddingWidget({ | |
Key key, | |
}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return Padding( | |
padding: EdgeInsets.symmetric(horizontal: 20), | |
child: Row( | |
crossAxisAlignment: CrossAxisAlignment.center, | |
mainAxisAlignment: MainAxisAlignment.spaceBetween, | |
children: <Widget>[ | |
Row( | |
crossAxisAlignment: CrossAxisAlignment.center, | |
children: <Widget>[ | |
Text( | |
"Period", | |
style: TextStyle( | |
fontWeight: FontWeight.bold, | |
color: Theme.of(context).textTheme.caption.color, | |
), | |
), | |
SizedBox( | |
width: 30, | |
), | |
Text( | |
"Last 30 days", | |
style: TextStyle( | |
fontWeight: FontWeight.bold, | |
fontSize: 16, | |
), | |
), | |
], | |
), | |
Container( | |
height: 40, | |
width: 40, | |
decoration: BoxDecoration( | |
borderRadius: BorderRadius.circular(10), | |
color: Theme.of(context).primaryColor, | |
boxShadow: [ | |
BoxShadow( | |
offset: Offset(3, 3), | |
color: Colors.black12, | |
blurRadius: 5, | |
), | |
BoxShadow( | |
offset: Offset(-3, -3), | |
color: Colors.white, | |
blurRadius: 5, | |
) | |
], | |
), | |
child: Icon( | |
Icons.arrow_forward_ios, | |
size: 14, | |
), | |
), | |
], | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment