Repository navigation
feat(mix): add BoxStyler.pressable() - #1088
Merged
Merged
Conversation
leoafarias
marked this pull request as ready for review
October 3, 2026 18:22
…ecords Co-authored-by: Leo Farias <[email protected]>
Co-authored-by: Leo Farias <[email protected]>
Co-authored-by: Leo Farias <[email protected]>
cursor
Bot
force-pushed
the
feat/boxstyler-pressable
branch
from
October 20, 2026 15:35
0811d72 to
2525770
Compare
…m docs - Move the BoxStylerPressable extension from box_spec.dart into pressable_widget.dart, next to the PressableBox constructor it mirrors. - Remove the one-off packages/mix/example app and its melos entry; it would have become mix's pub.dev example. - Drop the off-topic section in styler-api-policy.md and shorten the repeated "forwards every parameter" prose in README, guide and skills. - Wrap the CHANGELOG entry to match the surrounding style.
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
None.
Description
Adds
BoxStyler.pressable(...), which returns aPressableBoxthat uses the style:It's shorthand for
PressableBox(style: button, ...)and takes the same parameters, with the same defaults.Pressablestays outside theBox, so.onHovered,.onPressed,.onFocusedand.onDisabledon the style still resolve. This replaces the earlier callablePressable*Builderdesign from this branch, which never shipped.Changes
BoxStylerPressableextension inpressable_widget.dart, next toPressableBox.const PressableBox(...), every parameter is forwarded, and tap plusonPressedstyling work end to end.guides/api-composition-guidelines.md, and updated Mix skill references and examples.Review Checklist
flutter test test/src/specs/pressable(69 passed),dart formatanddart analyzeclean on the touched files.btwld/mix-docs.