Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.stac.dev/llms.txt

Use this file to discover all available pages before exploring further.

The Stac SliverOpacity allows you to apply opacity to an entire sliver inside a CustomScrollView. It is useful for creating fade effects on scrollable content. To know more about the SliverOpacity widget in Flutter, refer to the official documentation.

Properties

PropertyTypeDescription
opacitydoubleThe opacity to apply to the sliver. Must be between 0.0 and 1.0.
alwaysIncludeSemanticsbool?Whether the sliver is always included in the semantics tree. Defaults to false.
sliverMap<String, dynamic>?The sliver widget to which the opacity is applied.

Example

StacSliverOpacity(
  opacity: 0.5,
  sliver: StacSliverToBoxAdapter(
    child: StacContainer(
      height: 200,
      color: 'red',
      child: StacCenter(
        child: StacText(data: 'I am a faded sliver'),
      ),
    ),
  ),
)