Skip to content

feat: add keyboard_dismiss_behavior to scrollable controls - #49

Merged
AdamMusa merged 2 commits into
mainfrom
feat/keyboard-dismiss
Oct 29, 2026
Merged

AdamMusa merged 2 commits into
mainfrom
feat/keyboard-dismiss

Conversation

@AdamMusa

Copy link
Copy Markdown
Owner

Package A / A3 (keyboard-dismiss). Engine counterpart: AdamMusa/ruflet-engine#36.

Depends on #45 (A2) → #43 (A1) → #31 (A0). It is stacked because the KEYWORDS lines are shared. Review only the top commit, feat: add keyboard_dismiss_behavior to scrollable controls.

What

ListView, GridView, Column, Row, View and ReorderableListView accept keyboard_dismiss_behavior.

Usage

form = list_view(keyboard_dismiss_behavior: "onDrag", controls: form_fields, expand: true)

page.scroll = "auto"
page.keyboard_dismiss_behavior = "onDrag"   # reaches the implicit page View

Wire

  • Prop: keyboard_dismiss_behavior, "manual" (Flutter default) | "onDrag". "on_drag" and symbols also work.
  • No events.
  • Material and Cupertino behave the same; see the engine PR.

Tests: test/keyboard_dismiss_behavior_compatibility_test.rb, 4 runs, 22 assertions

  • Serializes on all six controls; symbols and manual are passed through; unset by default.
  • page.keyboard_dismiss_behavior= lands in the implicit View patch.

Results (verify_pr.sh, Flutter 3.41.2):

  • engine flutter test +783: All tests passed! (A2 746 + 37)
  • flutter analyze lib test: No issues found!
  • ruflet_core 149/149 files, 642 runs
  • wire-key audit: NEW vs baseline: 0

ListView, GridView, Column, Row, View and ReorderableListView accept
keyboard_dismiss_behavior ("manual" or "onDrag") so dragging a form
can dismiss the on-screen keyboard. page.keyboard_dismiss_behavior=
reaches the implicit page view.
@AdamMusa
AdamMusa merged commit d58b7c9 into main Oct 29, 2026
5 checks passed
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