Settings constructor

Settings(
  1. Map<String, Offer> offers, {
  2. Key? key,
  3. RichText? title,
  4. Color? primaryTextColor,
  5. Color? secondaryTextColor,
  6. Color? btnOutlineTextColor,
  7. Color? btnOutlineBorderColor,
  8. Color? btnSolidColor,
  9. String? fontPackage,
  10. String? fontFamily,
})

Builds the settings screen.

TikiSdk.theme is used for default styling.

Implementation

Settings(
  this.offers, {
  super.key,
  this.title,
  Color? primaryTextColor,
  Color? secondaryTextColor,
  Color? btnOutlineTextColor,
  Color? btnOutlineBorderColor,
  Color? btnSolidColor,
  String? fontPackage,
  String? fontFamily,
}) {
  primaryTextColor =
      primaryTextColor ?? TikiSdk.instance.activeTheme.primaryTextColor;
  secondaryTextColor =
      secondaryTextColor ?? TikiSdk.instance.activeTheme.secondaryTextColor;
  btnOutlineTextColor =
      btnOutlineTextColor ?? TikiSdk.instance.activeTheme.primaryTextColor;
  btnOutlineBorderColor =
      btnOutlineBorderColor ?? TikiSdk.instance.activeTheme.accentColor;
  btnSolidColor = btnSolidColor ?? TikiSdk.instance.activeTheme.accentColor;
  fontPackage = fontPackage ?? TikiSdk.instance.activeTheme.fontPackage;
  fontFamily = fontFamily ?? TikiSdk.instance.activeTheme.fontFamily;
}