TF-381 Apply new UI for MailboxView in browser
This commit is contained in:
@@ -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()
|
||||
)
|
||||
|
||||
@@ -75,11 +75,12 @@ class SearchBarView {
|
||||
|
||||
Widget _buildSearchButton() {
|
||||
return Material(
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
color: Colors.transparent,
|
||||
shape: CircleBorder(),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(left: 2),
|
||||
child: IconButton(
|
||||
splashRadius: 20,
|
||||
icon: SvgPicture.asset(_imagePaths.icSearchBar, width: 18, height: 18, fit: BoxFit.fill),
|
||||
onPressed: () => _onOpenSearchViewAction?.call()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user