LayerKitConfigProvider constructor
const
LayerKitConfigProvider({
- Key? key,
- required Widget child,
- EnvType? envType,
- bool? showApiReqLog,
- bool? showApiResLog,
- bool? showDevLog,
- bool? showDevErrorLog,
- bool? removeTryCatch,
- TransitionType? transitionType,
- double? textBoldSizeGlobal,
- double? textPrimarySizeGlobal,
- double? textSecondarySizeGlobal,
- String? fontFamilyBoldGlobal,
- String? fontFamilyPrimaryGlobal,
- String? fontFamilySecondaryGlobal,
- FontWeight? fontWeightBoldGlobal,
- FontWeight? fontWeightPrimaryGlobal,
- FontWeight? fontWeightSecondaryGlobal,
- double? defaultAppButtonRadius,
- double? defaultAppButtonElevation,
- Color? defaultInkWellSplashColor,
- Color? defaultInkWellHoverColor,
- Color? defaultInkWellHighlightColor,
- double? defaultInkWellRadius,
- Color? shadowColorGlobal,
- int? defaultElevation,
- double? defaultRadius,
- double? defaultBlurRadius,
- double? defaultSpreadRadius,
- double? defaultAppBarElevation,
- int? passwordLengthGlobal,
- ShapeBorder? defaultDialogShape,
- 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);