BaseExpansion class

BaseExpansion with iOS 26 Liquid Glass Dynamic Material and Material 3 support

Features iOS 26 Liquid Glass Dynamic Material with:

  • Transparency with optical clarity zones for expansion panels
  • Environmental reflections and adaptive blur effects
  • Dynamic interaction states with real-time responsiveness
  • Enhanced haptic feedback for expansion gestures
  • Unified design language across platforms

Material 3 Integration:

  • Modern elevation system with surface tinting
  • Semantic ColorScheme usage with adaptive colors
  • Enhanced accessibility and interaction feedback
  • Sophisticated animation curves with Material Motion

Enhanced expansion panel that can be positioned anywhere on screen with advanced optical effects and smooth Material Motion animations.

Enhanced: 2024.01.20 with iOS 26 Liquid Glass Dynamic Material

Inheritance

Constructors

BaseExpansion({Key? key, double left = 0.0, double top = 0.0, double? right = 0.0, double? bottom = 0.0, double? width, double? height, Duration duration = _expansionTransitionDuration, required Widget child, bool barrierDismissible = true, Curve curve = Curves.easeOutCubic, bool enableLiquidGlass = true, double glassOpacity = 0.85, double reflectionIntensity = 0.6, double refractionStrength = 0.4, bool adaptiveInteraction = true, bool hapticFeedback = true, bool environmentalAwareness = true, bool useMaterial3Elevation = true, Color? backgroundColor, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(16.0)), double elevation = 8.0})
const
BaseExpansion.fromHeight({Key? key, double left = 0.0, double top = 0.0, double? height, Duration duration = _expansionTransitionDuration, required Widget child, bool barrierDismissible = true, Curve curve = Curves.easeOutCubic, bool enableLiquidGlass = true, double glassOpacity = 0.85, double reflectionIntensity = 0.6, double refractionStrength = 0.4, bool adaptiveInteraction = true, bool hapticFeedback = true, bool environmentalAwareness = true, bool useMaterial3Elevation = true, Color? backgroundColor, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(16.0)), double elevation = 8.0})
const

Properties

adaptiveInteraction → bool
Enable adaptive interaction with real-time responsiveness Provides context-aware visual and haptic feedback for expansion interactions
final
backgroundColor → Color?
Background color for the expansion panel Uses semantic ColorScheme colors when null
final
barrierDismissible → bool
final
borderRadius → BorderRadius
Border radius for the expansion panel Creates rounded corners with Material 3 design tokens
final
bottom → double?
final
child → Widget
final
curve → Curve
final
duration → Duration
Animation properties
final
elevation → double
Elevation level for the expansion panel Enhanced with Material 3 surface tinting when enabled
final
enableLiquidGlass → bool
*** iOS 26 Liquid Glass Dynamic Material properties start *** Enable Liquid Glass Dynamic Material optical effects for expansion panels Provides transparency, reflections, and adaptive visual states
final
environmentalAwareness → bool
Enable environmental awareness for dynamic adaptation Responds to surrounding content and lighting conditions
final
glassOpacity → double
Glass transparency level for environmental awareness Creates optical clarity while maintaining content readability (0.0 to 1.0)
final
hapticFeedback → bool
Enable haptic feedback for enhanced expansion experience Provides appropriate haptic responses for expand/collapse gestures
final
hashCode → int
The hash code for this object.
no setterinherited
height → double?
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
left → double
Position properties
final
reflectionIntensity → double
Reflection intensity for environmental responsiveness Simulates real-world glass reflection behavior (0.0 to 1.0)
final
refractionStrength → double
Refraction strength for light distortion effects Creates realistic glass light-bending properties (0.0 to 1.0)
final
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
top → double
final
useMaterial3Elevation → bool
*** iOS 26 Liquid Glass Dynamic Material properties end *** *** Material 3 properties start *** Use Material 3 elevation system with surface tinting Provides modern elevation handling with enhanced visual depth
final
width → double?
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<StatefulWidget>
*** Material 3 properties end ***
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open<T>(BuildContext context, BaseExpansion baseExpansion, {Duration duration = const Duration(milliseconds: 0)}) → Future<T?>
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited