TF-1983 Add CreateFilters button in empty thread view widget
(cherry picked from commit 5eed73198c868448cfbc3c93600176aa15bf62f4)
This commit is contained in:
@@ -74,19 +74,57 @@ class TMailButtonWidget extends StatelessWidget {
|
||||
String? tooltipMessage,
|
||||
Color? backgroundColor,
|
||||
EdgeInsetsGeometry? padding,
|
||||
String text = '',
|
||||
bool verticalDirection = false,
|
||||
double? iconSize,
|
||||
Color? iconColor,
|
||||
TextStyle? textStyle,
|
||||
double iconSpace = 8,
|
||||
String? trailingIcon,
|
||||
double? trailingIconSize,
|
||||
Color? trailingIconColor,
|
||||
List<BoxShadow>? boxShadow,
|
||||
EdgeInsetsGeometry? margin,
|
||||
}) {
|
||||
return TMailButtonWidget(
|
||||
key: key,
|
||||
text: '',
|
||||
onTapActionCallback: onTapActionCallback,
|
||||
onTapActionAtPositionCallback: onTapActionAtPositionCallback,
|
||||
borderRadius: borderRadius,
|
||||
width: width,
|
||||
maxWidth : maxWidth,
|
||||
maxHeight: maxHeight,
|
||||
minWidth: minWidth,
|
||||
tooltipMessage: tooltipMessage,
|
||||
backgroundColor: backgroundColor,
|
||||
padding: padding,
|
||||
icon: icon,
|
||||
iconSize: iconSize,
|
||||
iconColor: iconColor,
|
||||
iconSpace: iconSpace,
|
||||
trailingIcon: trailingIcon,
|
||||
trailingIconSize: trailingIconSize,
|
||||
trailingIconColor: trailingIconColor,
|
||||
boxShadow: boxShadow,
|
||||
margin: margin,
|
||||
);
|
||||
}
|
||||
|
||||
factory TMailButtonWidget.fromText({
|
||||
required String text,
|
||||
final Key? key,
|
||||
OnTapActionCallback? onTapActionCallback,
|
||||
OnTapActionAtPositionCallback? onTapActionAtPositionCallback,
|
||||
double borderRadius = 20,
|
||||
double? width,
|
||||
double maxWidth = double.infinity,
|
||||
double maxHeight = double.infinity,
|
||||
double minWidth = 0,
|
||||
String? tooltipMessage,
|
||||
Color? backgroundColor,
|
||||
EdgeInsetsGeometry? padding,
|
||||
TextStyle? textStyle,
|
||||
List<BoxShadow>? boxShadow,
|
||||
EdgeInsetsGeometry? margin,
|
||||
TextAlign? textAlign,
|
||||
bool flexibleText = false,
|
||||
}) {
|
||||
return TMailButtonWidget(
|
||||
key: key,
|
||||
@@ -101,19 +139,10 @@ class TMailButtonWidget extends StatelessWidget {
|
||||
tooltipMessage: tooltipMessage,
|
||||
backgroundColor: backgroundColor,
|
||||
padding: padding,
|
||||
verticalDirection: verticalDirection,
|
||||
icon: icon,
|
||||
iconSize: iconSize,
|
||||
iconColor: iconColor,
|
||||
textStyle: textStyle,
|
||||
iconSpace: iconSpace,
|
||||
trailingIcon: trailingIcon,
|
||||
trailingIconSize: trailingIconSize,
|
||||
trailingIconColor: trailingIconColor,
|
||||
boxShadow: boxShadow,
|
||||
margin: margin,
|
||||
textAlign: textAlign,
|
||||
flexibleText: flexibleText,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user