TF-390 Apply new ui for suggestion box for email address

This commit is contained in:
dab246
2022-03-24 13:07:48 +07:00
committed by Dat H. Pham
parent 5ca2f2a572
commit fdf1e45d66
14 changed files with 108 additions and 72 deletions
@@ -67,13 +67,30 @@ Widget buildTextCircleButton(String text, {
style: ButtonStyle(
overlayColor: MaterialStateProperty.resolveWith<Color>((Set<MaterialState> states) => AppColor.colorFocusButton),
shape: MaterialStateProperty.all(CircleBorder()),
padding: MaterialStateProperty.resolveWith<EdgeInsets>((Set<MaterialState> states) => EdgeInsets.all(5)),
padding: MaterialStateProperty.resolveWith<EdgeInsets>((Set<MaterialState> states) => EdgeInsets.zero),
elevation: MaterialStateProperty.resolveWith<double>((Set<MaterialState> states) => 0)),
onPressed: () => onTap?.call()
)
);
}
Widget buildTextIcon(String text, {
TextStyle? textStyle,
EdgeInsets? padding,
IconWebCallback? onTap,
}) {
return Material(
shape: CircleBorder(),
color: Colors.transparent,
child: InkWell(
child: Padding(
padding: padding ?? EdgeInsets.all(10),
child: Text(text, style: textStyle ?? TextStyle(fontWeight: FontWeight.normal, fontSize: 15, color: AppColor.lineItemListColor))),
onTap: () => onTap?.call()
)
);
}
Widget buildTextButton(String text, {
TextStyle? textStyle,
double? width,