OnairosButton constructor
const
OnairosButton({
- Key? key,
- required String text,
- double? width,
- double? height,
- EdgeInsets? padding,
- double borderRadius = 8.0,
- Color? backgroundColor,
- Color? textColor,
- TextStyle? textStyle,
- bool isDisabled = false,
- bool isLoading = false,
- required dynamic onResolved(),
- String? preferredPlatform,
- bool testMode = false,
- String testModeType = 'universal_onboarding',
- required Map<
String, Map< requestData,String, String> > - required String returnLink,
- required String AppName,
- String buttonType = 'circle',
- String buttonForm = "default",
- Color? color,
- bool swerv = false,
- bool darkMode = false,
- required Function openOnairosOverlay,
- String? customButtonText,
- bool showLogo = true,
Implementation
const OnairosButton({
Key? key,
required this.text,
this.width,
this.height,
this.padding,
this.borderRadius = 8.0,
this.backgroundColor,
this.textColor,
this.textStyle,
this.isDisabled = false,
this.isLoading = false,
required this.onResolved,
this.preferredPlatform,
this.testMode = false,
this.testModeType = 'universal_onboarding',
required this.requestData,
required this.returnLink,
required this.AppName,
this.buttonType = 'circle',
this.buttonForm = "default",
this.color,
this.swerv = false,
this.darkMode = false, // Default to light mode
required this.openOnairosOverlay,
this.customButtonText,
this.showLogo = true,
}) : super(key: key);