shouldFullyObstruct method

  1. @override
bool shouldFullyObstruct(
  1. BuildContext context
)
override

Whether this app bar fully obstructs the content behind it.

Returns true only when backgroundColor is fully opaque (alpha = 1.0). With the default transparent background, this returns false, which tells CupertinoPageScaffold to extend the body behind the bar — matching the iOS 26 transparent navigation bar pattern.

Implementation

@override
bool shouldFullyObstruct(BuildContext context) => backgroundColor.a >= 1.0;