|
|
|
|
@ -31,13 +31,7 @@ class AuthHeader extends StatelessWidget {
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: SizeConfig.isMobile
|
|
|
|
|
? null
|
|
|
|
|
: EdgeInsetsDirectional.fromSTEB(
|
|
|
|
|
SizeConfig.screenWidth * 0.13, 0, 0, 0),
|
|
|
|
|
child: buildTextUnderLogo(context),
|
|
|
|
|
)
|
|
|
|
|
buildTextUnderLogo(context),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Column(
|
|
|
|
|
@ -86,50 +80,67 @@ class AuthHeader extends StatelessWidget {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget buildTextUnderLogo(context) {
|
|
|
|
|
Widget finalWid;
|
|
|
|
|
double textFontSize =
|
|
|
|
|
SizeConfig.isMobile ? 30 : SizeConfig.textMultiplier * 3;
|
|
|
|
|
EdgeInsetsDirectional containerMargin;
|
|
|
|
|
if (userType == loginType.knownUser || userType == loginType.unknownUser) {
|
|
|
|
|
return Text(
|
|
|
|
|
finalWid = Text(
|
|
|
|
|
"LOGIN",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: SizeConfig.isMobile ? 30 : SizeConfig.screenWidth * 0.035,
|
|
|
|
|
fontWeight: FontWeight.w800),
|
|
|
|
|
style: TextStyle(fontSize: textFontSize, fontWeight: FontWeight.w800),
|
|
|
|
|
);
|
|
|
|
|
} else {
|
|
|
|
|
String text1;
|
|
|
|
|
String text2;
|
|
|
|
|
if (userType == loginType.changePassword) {
|
|
|
|
|
text1 = 'Change';
|
|
|
|
|
text1 = 'Change ';
|
|
|
|
|
text2 = 'Password!';
|
|
|
|
|
}
|
|
|
|
|
if (userType == loginType.verifyPassword) {
|
|
|
|
|
text1 = 'verify';
|
|
|
|
|
text1 = 'Verify ';
|
|
|
|
|
text2 = 'Your Account!';
|
|
|
|
|
}
|
|
|
|
|
List<Widget> childrens = <Widget>[
|
|
|
|
|
Text(
|
|
|
|
|
text1,
|
|
|
|
|
style: TextStyle(fontSize: textFontSize, fontWeight: FontWeight.w800),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
text2,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Theme.of(context).primaryColor,
|
|
|
|
|
fontSize: textFontSize,
|
|
|
|
|
fontWeight: FontWeight.w800),
|
|
|
|
|
)
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
return Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Text(
|
|
|
|
|
text1,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize:
|
|
|
|
|
SizeConfig.isMobile ? 30 : SizeConfig.screenWidth * 0.035,
|
|
|
|
|
fontWeight: FontWeight.w800),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
text2,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Theme.of(context).primaryColor,
|
|
|
|
|
fontSize:
|
|
|
|
|
SizeConfig.isMobile ? 30 : SizeConfig.screenWidth * 0.035,
|
|
|
|
|
fontWeight: FontWeight.w800),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
if (!SizeConfig.isMobile) {
|
|
|
|
|
finalWid = Row(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: childrens,
|
|
|
|
|
);
|
|
|
|
|
} else {
|
|
|
|
|
finalWid = Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: childrens,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (!SizeConfig.isMobile) {
|
|
|
|
|
double start = SizeConfig.screenWidth * 0.13;
|
|
|
|
|
if (loginType.verifyPassword == userType ||
|
|
|
|
|
loginType.changePassword == userType) {
|
|
|
|
|
start = 0;
|
|
|
|
|
}
|
|
|
|
|
containerMargin = EdgeInsetsDirectional.fromSTEB(start, 0, 0, 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return Container(margin: containerMargin, child: finalWid);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Container buildDrAppContainer(BuildContext context) {
|
|
|
|
|
if (userType == loginType.changePassword || userType == loginType.verifyPassword ) {
|
|
|
|
|
if (userType == loginType.changePassword ||
|
|
|
|
|
userType == loginType.verifyPassword) {
|
|
|
|
|
return Container();
|
|
|
|
|
}
|
|
|
|
|
return Container(
|
|
|
|
|
@ -148,7 +159,8 @@ class AuthHeader extends StatelessWidget {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Text buildDrSulText(BuildContext context) {
|
|
|
|
|
if (userType == loginType.changePassword || userType == loginType.verifyPassword ) {
|
|
|
|
|
if (userType == loginType.changePassword ||
|
|
|
|
|
userType == loginType.verifyPassword) {
|
|
|
|
|
return Text('');
|
|
|
|
|
}
|
|
|
|
|
return Text(
|
|
|
|
|
@ -166,7 +178,8 @@ class AuthHeader extends StatelessWidget {
|
|
|
|
|
if (userType == loginType.unknownUser) {
|
|
|
|
|
text = 'Welcome Back to ';
|
|
|
|
|
}
|
|
|
|
|
if (userType == loginType.changePassword || userType == loginType.verifyPassword ) {
|
|
|
|
|
if (userType == loginType.changePassword ||
|
|
|
|
|
userType == loginType.verifyPassword) {
|
|
|
|
|
return Text('');
|
|
|
|
|
}
|
|
|
|
|
return Text(
|
|
|
|
|
|