TryonBtn constructor

const TryonBtn({
  1. Key? key,
  2. Widget? child,
  3. bool? isCustom = false,
  4. bool? isMagicMirror = false,
  5. required String urlPrefix,
  6. required String customerId,
  7. required String tryOnKey,
  8. Decoration? decoration,
  9. double? radius = 5,
  10. double? fontSize = 15,
  11. double? borderWidth = 0.8,
  12. Color? borderColor = const Color(0xffe0c448),
  13. Color? btnColor = const Color(0xff181d58),
  14. Color? txtColor = Colors.white,
  15. EdgeInsetsGeometry? padding = const EdgeInsets.symmetric(horizontal: 15, vertical: 10),
  16. EdgeInsetsGeometry? margin = const EdgeInsets.symmetric(horizontal: 15, vertical: 10),
  17. double? height,
  18. double? width,
  19. String? btnTxt = "TryOn",
  20. FontWeight? fontWeight,
  21. FontStyle? fontStyle,
  22. bool? fromId,
  23. String? userId,
})

Implementation

const TryonBtn(
    {super.key,
    this.child,
    this.isCustom = false,
    this.isMagicMirror = false,
    required this.urlPrefix,
    required this.customerId,
    required this.tryOnKey,
    this.decoration,
    this.radius = 5,
    this.fontSize = 15,
    this.borderWidth = 0.8,
    this.borderColor = const Color(0xffe0c448),
    this.btnColor = const Color(0xff181d58),
    this.txtColor = Colors.white,
    this.padding = const EdgeInsets.symmetric(horizontal: 15, vertical: 10),
    this.margin = const EdgeInsets.symmetric(horizontal: 15, vertical: 10),
    this.height,
    this.width,
    this.btnTxt = "TryOn",
    this.fontWeight,
    this.fontStyle,
    this.fromId, this.userId});