OnairosButton constructor

const OnairosButton({
  1. Key? key,
  2. required String text,
  3. double? width,
  4. double? height,
  5. EdgeInsets? padding,
  6. double borderRadius = 8.0,
  7. Color? backgroundColor,
  8. Color? textColor,
  9. TextStyle? textStyle,
  10. bool isDisabled = false,
  11. bool isLoading = false,
  12. required dynamic onResolved(
    1. String,
    2. String,
    3. dynamic
    ),
  13. String? preferredPlatform,
  14. bool testMode = false,
  15. String testModeType = 'universal_onboarding',
  16. required Map<String, Map<String, String>> requestData,
  17. required String returnLink,
  18. required String AppName,
  19. String buttonType = 'circle',
  20. String buttonForm = "default",
  21. Color? color,
  22. bool swerv = false,
  23. bool darkMode = false,
  24. required Function openOnairosOverlay,
  25. String? customButtonText,
})

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);