attach method
Implementation
@override
Widget attach(BuildContext context) {
if (!visibility) return const SizedBox.shrink();
final theme = ButtonTheme.of(context);
final scheme = theme.colorScheme;
final fg = enabled
? activated
? scheme?.onSecondary
: scheme?.onPrimary
: scheme?.onTertiary;
return AndrossyButtonSkeleton(
icon: icon,
iconAlignment: iconAlignment,
iconFlexible: iconFlexible,
iconOnly: _iconOnly,
iconColor: iconColor,
iconColorAsRoot: iconColorAsRoot,
iconSize: iconSize,
iconSpace: iconSpace,
text: _iconOnly ? null : text,
textAllCaps: textAllCaps,
textCenter: textCenter,
textColor: textColor ?? fg,
textFontWeight: textFontWeight ?? FontWeight.w600,
textSize: textSize ?? 16,
textStyle: textStyle,
);
}