Button.solid constructor

Button.solid(
  1. String text,
  2. Function onTap, {
  3. Key? key,
  4. dynamic color,
  5. dynamic fontFamily,
  6. dynamic fontPackage,
})

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;
}