TF-518 Apply new UI for login in web

This commit is contained in:
Dat PHAM HOANG
2022-05-05 17:42:09 +07:00
committed by Dat H. Pham
parent cc66d141d4
commit 3fc2ae4776
16 changed files with 450 additions and 109 deletions
@@ -106,6 +106,12 @@ class ImagePaths {
String get icEdit => _getImagePath('ic_edit.svg');
String get icEye => _getImagePath('ic_eye.svg');
String get icEyeOff => _getImagePath('ic_eye_off.svg');
String get icJMAPStandard => _getImagePath('ic_jmap_standard.svg');
String get icEncrypted => _getImagePath('ic_encrypted.svg');
String get icIntegration => _getImagePath('ic_integration.svg');
String get icTeam => _getImagePath('ic_team.svg');
String get loginGraphic => _getImagePath('login_graphic.png');
String get icPowerByLinagora => _getImagePath('power_by_linagora.svg');
String _getImagePath(String imageName) {
return AssetsPaths.images + imageName;
@@ -19,6 +19,7 @@ class SloganBuilder {
String? _logo;
double? _sizeLogo;
OnTapCallback? _onTapCallback;
EdgeInsetsGeometry? _padding;
SloganBuilder({this.arrangedByHorizontal = false});
@@ -54,6 +55,10 @@ class SloganBuilder {
_onTapCallback = onTapCallback;
}
void setPadding(EdgeInsetsGeometry? padding) {
_padding = padding;
}
Widget build() {
if (!arrangedByHorizontal) {
return InkWell(
@@ -61,7 +66,7 @@ class SloganBuilder {
child: Column(children: [
_logoApp(),
Padding(
padding: EdgeInsets.only(top: 16, left: 16, right: 16),
padding: _padding ?? EdgeInsets.only(top: 16, left: 16, right: 16),
child: Text(_text ?? '', key: _key, style: _textStyle, textAlign: _textAlign),
),
]),
@@ -72,7 +77,7 @@ class SloganBuilder {
child: Row(children: [
_logoApp(),
Padding(
padding: EdgeInsets.symmetric(horizontal: 10),
padding: _padding ?? EdgeInsets.symmetric(horizontal: 10),
child: Text(_text ?? '', key: _key, style: _textStyle, textAlign: _textAlign),
),
]),