BaseMaterialWidget.withoutSplash constructor

BaseMaterialWidget.withoutSplash({
  1. Key? key,
  2. required Widget child,
  3. ThemeData? theme,
  4. bool enableLiquidGlass = true,
  5. bool enableEnvironmentalAwareness = true,
  6. bool enableHapticFeedback = false,
  7. MaterialType materialType = MaterialType.transparency,
  8. Color? surfaceColor,
  9. double? elevation,
  10. BorderRadius? borderRadius,
  11. EdgeInsetsGeometry? padding,
  12. Duration animationDuration = const Duration(milliseconds: 300),
  13. Curve animationCurve = Curves.easeOutCubic,
})

Custom material component without ripple effects Enhanced with iOS 26 Liquid Glass environmental awareness Suitable for using material components in cupertino mode

Implementation

BaseMaterialWidget.withoutSplash({
  Key? key,
  required Widget child,
  this.theme,
  this.enableLiquidGlass = true,
  this.enableEnvironmentalAwareness = true,
  this.enableHapticFeedback = false,
  this.materialType = MaterialType.transparency,
  this.surfaceColor,
  this.elevation,
  this.borderRadius,
  this.padding,
  this.animationDuration = const Duration(milliseconds: 300),
  this.animationCurve = Curves.easeOutCubic,
})  : assert(child != null, 'child can not be null.'),
      child = _buildThemedChild(child, theme!, WithoutSplashFactory()),
      splashFactory = WithoutSplashFactory(),
      super(key: key);