Repository navigation
feat(mix): add callable pressable builders across stylers - #1088
Open
leoafarias wants to merge 4 commits into
Open
leoafarias wants to merge 4 commits into
leoafarias wants to merge 4 commits into
Conversation
leoafarias
marked this pull request as ready for review
October 3, 2026 18:22
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issue
No linked issue.
Description
Make
compose → .pressable() → callthe standard API for interactive Mix surfaces across Box, Text, Icon, Image, FlexBox, StackBox, WrapBox, and GridBox.Changes
Pressablewith the appropriate styled child. Forward every Pressable option/default, preserve native content arguments, and keep keys on the outer widget. Builders expose no further styling or style override.Existing released
Pressable,PressableBox, and ordinary styler APIs remain compatible. Layout-only stylers are unchanged.@MixWidgetfactories still return styles.Review Checklist
btwld/mix-docsupdate is an explicit release follow-up.Validation and release follow-ups
melos run gen:build,melos run ci, andmelos run format:checkpassed. Final CI includes 3,027 core Mix tests, 383 generator tests, and all dependent suites.melos run analyze: schema inventory and Dart analysis passed (existing informational notices remain). DCM still reports exactly four pre-existing findings in unchanged files: member ordering and sealed-switch wildcard instyle_animation_builder.dart:81,90; argument ordering indecoration_style_mixin.dart:273,359. No new DCM findings remain.The hosted showcase deliberately uses published Mix in CI. Keep its current constructors, including standalone DartPad Snacks, until a release includes callable builders. The new source-only example demonstrates the API now;
guides/pressable-builders-release-audit.mdmaps all 22 PressableBox and 9 Pressable call sites and records hit-area, nested-control, keyboard and semantics constraints for migration.Plan and review records
Both records are committed with this PR. Repository instructions now require plans and relevant review/audit records to be committed and pushed with future PRs.