Created
June 11, 2019 20:06
-
-
Save ptyagicodecamp/096d6a4b1800f2e859f8a5106cc18de2 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 EmailBox extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Padding( | |
padding: EdgeInsets.only(left: 4.0, right: 74, top: 10, bottom: 40), | |
child: Container( | |
height: 60, | |
decoration: BoxDecoration( | |
color: MyColors.white1, | |
borderRadius: BorderRadius.circular(20), | |
boxShadow: [ | |
BoxShadow( | |
color: Colors.black12, offset: Offset(0, 8), blurRadius: 8) | |
]), | |
child: Padding( | |
padding: EdgeInsets.symmetric(horizontal: 20), | |
child: Row( | |
mainAxisAlignment: MainAxisAlignment.spaceBetween, | |
children: <Widget>[ | |
Expanded( | |
flex: 8, | |
child: TextField( | |
decoration: InputDecoration( | |
border: InputBorder.none, hintText: Strings.email_hint), | |
), | |
), | |
Expanded( | |
flex: 2, | |
child: SubscribeButton(), | |
) | |
], | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment