BaseMaterialWidget.withoutSplash constructor
BaseMaterialWidget.withoutSplash({
- Key? key,
- required Widget child,
- ThemeData? theme,
- bool enableLiquidGlass = true,
- bool enableEnvironmentalAwareness = true,
- bool enableHapticFeedback = false,
- MaterialType materialType = MaterialType.transparency,
- Color? surfaceColor,
- double? elevation,
- BorderRadius? borderRadius,
- EdgeInsetsGeometry? padding,
- Duration animationDuration = const Duration(milliseconds: 300),
- 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);