Skip to content

Instantly share code, notes, and snippets.

@ptyagicodecamp
Created June 11, 2019 20:06
Show Gist options
  • Save ptyagicodecamp/096d6a4b1800f2e859f8a5106cc18de2 to your computer and use it in GitHub Desktop.
Save ptyagicodecamp/096d6a4b1800f2e859f8a5106cc18de2 to your computer and use it in GitHub Desktop.
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