Button constructor

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

The default constructor for outlined button.

TikiSdk.theme is used for default styling.

Implementation

Button(this.text, this.onTap,
    {super.key, textColor, borderColor, fontFamily, fontPackage}) {
  this.fontFamily = fontFamily ?? TikiSdk.instance.activeTheme.fontFamily;
  this.fontPackage = fontPackage ?? TikiSdk.instance.activeTheme.fontPackage;
  this.textColor = textColor ?? TikiSdk.instance.activeTheme.primaryTextColor;
  this.borderColor = borderColor ?? TikiSdk.instance.activeTheme.accentColor;
  backgroundColor = const Color(0xFFFFFFFF);
}