TF-381 Apply new UI for MailboxView in browser

This commit is contained in:
dab246
2022-03-22 02:10:39 +07:00
committed by Dat H. Pham
parent 7dc8672b82
commit 3cb2b58827
8 changed files with 142 additions and 65 deletions
@@ -23,6 +23,7 @@ class ButtonBuilder {
BoxDecoration? _decoration;
Widget? _iconAction;
double? _radiusSplash;
double? _maxWidth;
EdgeInsets? _padding;
void key(Key key) {
@@ -37,6 +38,10 @@ class ButtonBuilder {
_size = size;
}
void maxWidth(double? size) {
_maxWidth = size;
}
void iconColor(Color color) {
_iconColor = color;
}
@@ -106,6 +111,7 @@ class ButtonBuilder {
alignment: Alignment.center,
color: _decoration == null ? _colorButton ?? Colors.white : null,
decoration: _decoration,
width: _maxWidth,
padding: _padding ?? EdgeInsets.zero,
child: _buildBody()
)