Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add isCompact field to CommandBar #235

Merged
merged 2 commits into from
Mar 23, 2022

Conversation

klondikedragon
Copy link
Contributor

Small follow-on tweak to #232 to add an explicit field isCompact that can indicate that the primary display area should display the items in compact mode, without relying on compactBreakpointWidth. While compactBreakpointWidth is convenient, it was breaking things in some of my more complex layouts that already had a LayoutBuilder in a parent widget higher in the org tree. This allows use of the compactBreakpointWidth for convenience in most cases, or complete control over compact mode using isCompact otherwise. Default behavior has not changed.

* If compactBreakpointWidth is not specified, then indicates whether or
  not items on the primary area should be displayed in their compact
  mode.
lib/src/controls/surfaces/commandbar.dart Outdated Show resolved Hide resolved
lib/src/controls/surfaces/commandbar.dart Outdated Show resolved Hide resolved
@bdlukaa bdlukaa merged commit b9895c4 into bdlukaa:master Mar 23, 2022
@klondikedragon klondikedragon deleted the compact_commandbar branch April 4, 2022 22:38
dev-hann added a commit to dev-hann/fluent_ui that referenced this pull request Sep 18, 2023
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.

None yet

2 participants