Created
January 13, 2020 15:05
-
-
Save av/7b58c0a047ded8a452195cf1f99be042 to your computer and use it in GitHub Desktop.
Flutter: neu
This file contains hidden or 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
// In NeumorphicContainer.build | |
// ... | |
return Container( | |
decoration: BoxDecoration( | |
border: Border( | |
top: BorderSide(width: bevel, color: Color(0xFFFFFFFFFF)), | |
left: BorderSide(width: bevel, color: Color(0xFFFFFFFFFF)), | |
right: BorderSide(width: bevel, color: Color(0xFFFF000000)), | |
bottom: BorderSide(width: bevel, color: Color(0xFFFF000000)), | |
), | |
), | |
child: Container( | |
padding: const EdgeInsets.symmetric(horizontal: 20.0, vertical: 2.0), | |
decoration: BoxDecoration( | |
border: Border( | |
top: BorderSide(width: bevel, color: Color(0xFFFFDFDFDF)), | |
left: BorderSide(width: bevel, color: Color(0xFFFFDFDFDF)), | |
right: BorderSide(width: bevel, color: Color(0xFFFF7F7F7F)), | |
bottom: BorderSide(width: bevel, color: Color(0xFFFF7F7F7F)), | |
), | |
color: Color(0xFFBFBFBF), | |
), | |
child: child, | |
), | |
); | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment