autoHideOnModal property

bool autoHideOnModal
final

When true (default), destroys the native segmented control's PlatformView while a modal sheet is presented above this widget's host route. Fixes the iOS hybrid-composition z-order bleed (Issue #53). Requires CNTabBarRouteObserver() to be registered in the app's navigatorObservers. No effect on iOS < 26 / non-iOS (Flutter fallback).

Implementation

final bool autoHideOnModal;