shouldFullyObstruct method

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

True if the navigation bar's background color has no transparency.

Implementation

@override
bool shouldFullyObstruct(BuildContext context) {
  final Color backgroundColor = CupertinoDynamicColor.maybeResolve(this.backgroundColor, context)
                             ?? CupertinoTheme.of(context).barBackgroundColor;
  return backgroundColor.alpha == 0xFF;
}