TF-1977 Disable highlight color when clicking logo
(cherry picked from commit 388f062b07968440209f4e90544d42d4c6d3f883)
This commit is contained in:
@@ -44,56 +44,50 @@ class SloganBuilder extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
if (!arrangedByHorizontal) {
|
if (!arrangedByHorizontal) {
|
||||||
return Material(
|
return InkWell(
|
||||||
color: Colors.transparent,
|
onTap: onTapCallback,
|
||||||
child: InkWell(
|
hoverColor: hoverColor,
|
||||||
onTap: onTapCallback,
|
borderRadius: BorderRadius.all(Radius.circular(hoverRadius ?? 8)),
|
||||||
hoverColor: hoverColor,
|
child: Padding(
|
||||||
borderRadius: BorderRadius.all(Radius.circular(hoverRadius ?? 8)),
|
padding: padding ?? EdgeInsets.zero,
|
||||||
child: Padding(
|
child: Column(children: [
|
||||||
padding: padding ?? EdgeInsets.zero,
|
_logoApp(),
|
||||||
child: Column(children: [
|
Padding(
|
||||||
_logoApp(),
|
padding: paddingText ?? const EdgeInsetsDirectional.only(top: 16, start: 16, end: 16),
|
||||||
Padding(
|
child: Text(
|
||||||
padding: paddingText ?? const EdgeInsetsDirectional.only(top: 16, start: 16, end: 16),
|
text ?? '',
|
||||||
child: Text(
|
style: textStyle,
|
||||||
text ?? '',
|
textAlign: textAlign,
|
||||||
style: textStyle,
|
overflow: enableOverflow ? CommonTextStyle.defaultTextOverFlow : null,
|
||||||
textAlign: textAlign,
|
softWrap: enableOverflow ? CommonTextStyle.defaultSoftWrap : null,
|
||||||
overflow: enableOverflow ? CommonTextStyle.defaultTextOverFlow : null,
|
maxLines: enableOverflow ? 1 : null,
|
||||||
softWrap: enableOverflow ? CommonTextStyle.defaultSoftWrap : null,
|
|
||||||
maxLines: enableOverflow ? 1 : null,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
]),
|
),
|
||||||
),
|
]),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return Material(
|
return InkWell(
|
||||||
color: Colors.transparent,
|
onTap: onTapCallback,
|
||||||
child: InkWell(
|
hoverColor: hoverColor,
|
||||||
onTap: onTapCallback,
|
radius: hoverRadius ?? 8,
|
||||||
hoverColor: hoverColor,
|
borderRadius: BorderRadius.all(Radius.circular(hoverRadius ?? 8)),
|
||||||
radius: hoverRadius ?? 8,
|
child: Padding(
|
||||||
borderRadius: BorderRadius.all(Radius.circular(hoverRadius ?? 8)),
|
padding: padding ?? EdgeInsets.zero,
|
||||||
child: Padding(
|
child: Row(children: [
|
||||||
padding: padding ?? EdgeInsets.zero,
|
_logoApp(),
|
||||||
child: Row(children: [
|
Padding(
|
||||||
_logoApp(),
|
padding: paddingText ?? const EdgeInsets.symmetric(horizontal: 10),
|
||||||
Padding(
|
child: Text(
|
||||||
padding: paddingText ?? const EdgeInsets.symmetric(horizontal: 10),
|
text ?? '',
|
||||||
child: Text(
|
style: textStyle,
|
||||||
text ?? '',
|
textAlign: textAlign,
|
||||||
style: textStyle,
|
overflow: enableOverflow ? CommonTextStyle.defaultTextOverFlow : null,
|
||||||
textAlign: textAlign,
|
softWrap: enableOverflow ? CommonTextStyle.defaultSoftWrap : null,
|
||||||
overflow: enableOverflow ? CommonTextStyle.defaultTextOverFlow : null,
|
maxLines: enableOverflow ? 1 : null,
|
||||||
softWrap: enableOverflow ? CommonTextStyle.defaultSoftWrap : null,
|
|
||||||
maxLines: enableOverflow ? 1 : null,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
]),
|
),
|
||||||
),
|
]),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user