TryonBtn constructor
const
TryonBtn({
- Key? key,
- Widget? child,
- bool? isCustom = false,
- bool? isMagicMirror = false,
- required String urlPrefix,
- required String customerId,
- required String tryOnKey,
- Decoration? decoration,
- double? radius = 5,
- double? fontSize = 15,
- double? borderWidth = 0.8,
- Color? borderColor = const Color(0xffe0c448),
- Color? btnColor = const Color(0xff181d58),
- Color? txtColor = Colors.white,
- EdgeInsetsGeometry? padding = const EdgeInsets.symmetric(horizontal: 15, vertical: 10),
- EdgeInsetsGeometry? margin = const EdgeInsets.symmetric(horizontal: 15, vertical: 10),
- double? height,
- double? width,
- String? btnTxt = "TryOn",
- FontWeight? fontWeight,
- FontStyle? fontStyle,
- bool? fromId,
- 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});