LayerKitConfigProvider constructor

const LayerKitConfigProvider({
  1. Key? key,
  2. required Widget child,
  3. EnvType? envType,
  4. bool? showApiReqLog,
  5. bool? showApiResLog,
  6. bool? showDevLog,
  7. bool? showDevErrorLog,
  8. bool? removeTryCatch,
  9. TransitionType? transitionType,
  10. double? textBoldSizeGlobal,
  11. double? textPrimarySizeGlobal,
  12. double? textSecondarySizeGlobal,
  13. String? fontFamilyBoldGlobal,
  14. String? fontFamilyPrimaryGlobal,
  15. String? fontFamilySecondaryGlobal,
  16. FontWeight? fontWeightBoldGlobal,
  17. FontWeight? fontWeightPrimaryGlobal,
  18. FontWeight? fontWeightSecondaryGlobal,
  19. double? defaultAppButtonRadius,
  20. double? defaultAppButtonElevation,
  21. Color? defaultInkWellSplashColor,
  22. Color? defaultInkWellHoverColor,
  23. Color? defaultInkWellHighlightColor,
  24. double? defaultInkWellRadius,
  25. Color? shadowColorGlobal,
  26. int? defaultElevation,
  27. double? defaultRadius,
  28. double? defaultBlurRadius,
  29. double? defaultSpreadRadius,
  30. double? defaultAppBarElevation,
  31. int? passwordLengthGlobal,
  32. ShapeBorder? defaultDialogShape,
  33. String? defaultCurrencySymbol,
})

Creates a LayerKitConfigProvider to initialize the LayerKitConfig for the application and provide it to the widget tree.

The child parameter is required and typically should be your application's root widget (like MaterialApp).

Implementation

const LayerKitConfigProvider({
  Key? key,
  required this.child,

  // Environment parameters
  this.envType,
  this.showApiReqLog,
  this.showApiResLog,
  this.showDevLog,
  this.showDevErrorLog,
  this.removeTryCatch,

  // UI/UX parameters
  this.transitionType,
  this.textBoldSizeGlobal,
  this.textPrimarySizeGlobal,
  this.textSecondarySizeGlobal,
  this.fontFamilyBoldGlobal,
  this.fontFamilyPrimaryGlobal,
  this.fontFamilySecondaryGlobal,
  this.fontWeightBoldGlobal,
  this.fontWeightPrimaryGlobal,
  this.fontWeightSecondaryGlobal,

  // Button parameters
  this.defaultAppButtonRadius,
  this.defaultAppButtonElevation,

  // InkWell parameters
  this.defaultInkWellSplashColor,
  this.defaultInkWellHoverColor,
  this.defaultInkWellHighlightColor,
  this.defaultInkWellRadius,

  // Shadow parameters
  this.shadowColorGlobal,
  this.defaultElevation,
  this.defaultRadius,
  this.defaultBlurRadius,
  this.defaultSpreadRadius,
  this.defaultAppBarElevation,

  // Other parameters
  this.passwordLengthGlobal,
  this.defaultDialogShape,
  this.defaultCurrencySymbol,
}) : super(key: key);