Created
July 24, 2019 19:47
-
-
Save VB10/26fcbcc4ceaa73ec41c5a48462dfefe3 to your computer and use it in GitHub Desktop.
Heltho UI Register View dart
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
@override | |
Widget build(BuildContext context) { | |
ScreenUtil().init(context); | |
return Scaffold( | |
body: Padding( | |
padding: EdgeInsets.symmetric(horizontal: UIHelper.Space20), | |
child: _phoneViewColumn), | |
); | |
} | |
Widget get _phoneViewColumn => Column( | |
mainAxisAlignment: MainAxisAlignment.start, | |
crossAxisAlignment: CrossAxisAlignment.start, | |
children: <Widget>[ | |
Spacer(), | |
Expanded( | |
flex: 3, | |
child: Column( | |
crossAxisAlignment: CrossAxisAlignment.start, | |
children: <Widget>[ | |
_titleTextStyle, | |
UIHelper.verticalSpace, | |
_textField, | |
UIHelper.verticalSpaceLarge, | |
_nextButtonWrapFilled | |
], | |
), | |
), | |
Spacer(), | |
], | |
); | |
Widget get _titleTextStyle => Text( | |
"Enter Your Name", | |
style: userRegisterPageTitleStyle, | |
); | |
Widget get _textField => TextField( | |
keyboardType: TextInputType.text, | |
decoration: InputDecoration( | |
hintText: "ie. Ashish Chutake", | |
hintStyle: phoneTextInputHintTextStyle, | |
filled: true, | |
fillColor: phoneInputBackgroundColor, | |
enabledBorder: circleTextInputDecoration, | |
border: circleTextInputDecoration, | |
), | |
); | |
Widget get _nextButtonWrapFilled => Container( | |
height: UIHelper.Space50, | |
child: SizedBox.expand(child: _nextButton), | |
); | |
Widget get _nextButton => RoundedButtonWidget( | |
color: phoneVerifyButtonColor, | |
onPress: () => Navigator.of(context).pushNamed("/verify"), | |
child: Text( | |
"NEXT", | |
style: onBoardingNextButtonStyle, | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment