TF-801 Enable vacation responder setting

This commit is contained in:
dab246
2022-08-17 20:34:26 +07:00
committed by Dat H. Pham
parent f3e6d892d8
commit c4d78f732d
10 changed files with 666 additions and 418 deletions
@@ -17,6 +17,7 @@ class BorderButtonField<T> extends StatelessWidget {
final TextStyle? textStyle;
final MouseCursor? mouseCursor;
final String? hintText;
final bool isEmpty;
const BorderButtonField({
super.key,
@@ -26,6 +27,7 @@ class BorderButtonField<T> extends StatelessWidget {
this.textStyle,
this.mouseCursor,
this.hintText,
this.isEmpty = false,
});
@override
@@ -40,7 +42,7 @@ class BorderButtonField<T> extends StatelessWidget {
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
border: Border.all(
color: AppColor.colorInputBorderCreateMailbox,
color: _getBorderColor(),
width: 1),
color: Colors.white),
padding: const EdgeInsets.only(left: 12, right: 10),
@@ -80,4 +82,11 @@ class BorderButtonField<T> extends StatelessWidget {
}
return hintText ?? '';
}
Color _getBorderColor() {
if (!isEmpty) {
return AppColor.colorInputBorderCreateMailbox;
}
return AppColor.colorInputBorderErrorVerifyName;
}
}