Button.solid constructor
Button.solid(})
The constructor for a solid color button.
TikiSdk.theme is used for default styling.
Implementation
Button.solid(this.text, this.onTap,
{super.key, color, fontFamily, fontPackage}) {
this.fontFamily = fontFamily ?? TikiSdk.instance.activeTheme.fontFamily;
this.fontPackage = fontPackage ?? TikiSdk.instance.activeTheme.fontPackage;
backgroundColor = color ?? TikiSdk.instance.activeTheme.accentColor;
borderColor = borderColor ?? TikiSdk.instance.activeTheme.accentColor;
}