Skip to content

fix: honor Ruby enable_background_filter_blur on Cupertino AppBar - #9

Merged
AdamMusa merged 2 commits into
codex/engine-initializationfrom
fix/cupertino-app-bar-blur
Oct 28, 2026
Merged

AdamMusa merged 2 commits into
codex/engine-initializationfrom
fix/cupertino-app-bar-blur

Conversation

@AdamMusa

Copy link
Copy Markdown
Owner

Summary

Ruby's CupertinoAppBar (cupertinos/cupertinoappbar_control.rb, wire type AppBar) has an enable_background_filter_blur: boolean keyword. cupertino_app_bar.dart read background_filter_blur, which Ruby cannot send, so cupertino_app_bar(enable_background_filter_blur: false) could never turn off the iOS navigation-bar blur.

Fix

CupertinoAppBarControl now reads enable_background_filter_blur, keeping the default true. The value goes to both CupertinoNavigationBar and CupertinoNavigationBar.large.

This is Cupertino only. The Material AppBar has no background blur, and Ruby's Material AppBar does not declare the key. No other engine code reads background_filter_blur.

Tests

New test/widgets/ruby_cupertino_app_bar_keys_test.dart. It pumps the AppBar wire payload as a CupertinoPageScaffold.navigationBar, for both large: false and large: true:

  • With enable_background_filter_blur: false, it checks that CupertinoNavigationBar.enableBackgroundFilterBlur is false. This failed before the fix (it stayed true).
  • Without the key, it checks that the value stays true.

verify_pr.sh: flutter test +699, all passed (695 baseline + 4 new). flutter analyze lib test found no issues. Flutter 3.41.2.

QA finding #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant