Created
June 11, 2019 20:28
-
-
Save ptyagicodecamp/178b229c0a71c4f5085c5d7af7a6ea70 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 SmallScreen extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return SingleChildScrollView( | |
child: Padding( | |
padding: EdgeInsets.all(40), | |
child: Column( | |
crossAxisAlignment: CrossAxisAlignment.start, | |
children: <Widget>[ | |
Text( | |
Strings.hello, | |
style: TextStyle( | |
fontWeight: FontWeight.bold, | |
fontSize: 40, | |
color: MyColors.blue4, | |
), | |
), | |
RichText( | |
text: TextSpan( | |
text: Strings.welcomeTo, | |
style: TextStyle(fontSize: 40, color: MyColors.blue4), | |
children: [ | |
TextSpan( | |
text: Strings.ftf, | |
style: TextStyle( | |
fontSize: 40, | |
fontWeight: FontWeight.bold, | |
color: Colors.black54)) | |
]), | |
), | |
SizedBox( | |
height: 30, | |
), | |
Center( | |
child: Image.network( | |
backgroundImage, | |
scale: 1, | |
), | |
), | |
Padding( | |
padding: EdgeInsets.only(left: 12.0, top: 20), | |
child: Text(Strings.subscribeText), | |
), | |
SizedBox( | |
height: 30, | |
), | |
EmailBox(), | |
SizedBox( | |
height: 30, | |
) | |
], | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment