TransparentMacOSSidebar constructor

const TransparentMacOSSidebar({
  1. Key? key,
  2. double alphaValue = 1.0,
  3. NSVisualEffectViewMaterial material = NSVisualEffectViewMaterial.sidebar,
  4. NSVisualEffectViewState state = NSVisualEffectViewState.followsWindowActiveState,
  5. VisualEffectSubviewContainerResizeEventRelay? resizeEventRelay,
  6. required Widget child,
})

A widget that applies a visual effect subview to a child widget that represents the application's sidebar.

The alphaValue is applied to the visual effect subview. It does not affect the opacity of the child.

By default, a TransparentMacOSSidebar updates its visual effect view whenever its build method runs. If manual control over its update behavior is desired, it can be supplied a VisualEffectSubviewContainerResizeEventRelay through which its update behavior can be controlled manually.

Usage example:

TransparentMacOSSidebar(
  child: Container(
    width: 250.0,
  ),
)

Implementation

const TransparentMacOSSidebar(
    {Key? key,
    this.alphaValue = 1.0,
    this.material = NSVisualEffectViewMaterial.sidebar,
    this.state = NSVisualEffectViewState.followsWindowActiveState,
    this.resizeEventRelay,
    required this.child})
    : super(key: key);