ShadcnLayer constructor

const ShadcnLayer({
  1. Key? key,
  2. required ThemeData theme,
  3. AdaptiveScaling? scaling,
  4. Widget? child,
  5. List<Color> initialRecentColors = const [],
  6. int maxRecentColors = 50,
  7. ValueChanged<List<Color>>? onRecentColorsChanged,
  8. Widget builder(
    1. BuildContext context,
    2. Widget? child
    )?,
  9. bool enableScrollInterception = false,
  10. ThemeData? darkTheme,
  11. ThemeMode themeMode = ThemeMode.system,
  12. OverlayHandler? popoverHandler,
  13. OverlayHandler? tooltipHandler,
  14. OverlayHandler? menuHandler,
  15. bool enableThemeAnimation = true,
})

Implementation

const ShadcnLayer({
  super.key,
  required this.theme,
  this.scaling,
  this.child,
  this.initialRecentColors = const [],
  this.maxRecentColors = 50,
  this.onRecentColorsChanged,
  this.builder,
  this.enableScrollInterception = false,
  this.darkTheme,
  this.themeMode = ThemeMode.system,
  this.popoverHandler,
  this.tooltipHandler,
  this.menuHandler,
  this.enableThemeAnimation = true,
});