-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
Improve MacosTooltip
, add tooltip property to toolbar items, and implement ToolbarDivider
(closes #231, #232)
#234
Merged
Conversation
This file contains 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
…rties, include TooltipTheme as part of macos_ui, cleanup TooltipTheme related code
GroovinChip
approved these changes
May 8, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you as always for your hard work and dedication! I appreciate you immensely!
GroovinChip
added a commit
that referenced
this pull request
May 8, 2022
* `MacosColorWell` docfix (#219) * docs: fix color well docs * chore: bump version & changelog * Version 1.0.1 (#222) * Display search results when searching from a `MacosSearchField` (closes #216) (#224) * feat: implement showing suggestions below/above MacosSearchField * refactor: set and clean up MacosSearchField properties * chore: make offset method private * refactor: remove expanded suggestions mode * refactor: clean up and remove unnecessary properties * refactor: add ability to supply onSelected callback to individual search suggestion items, extend example * fix: show overlay at proper vertical offset * chore: minor clean up of the fields page * refactor: use MacosOverlayFilter for all frosted glass effects of menus and dropdowns * chore: remove unnecessary imports * docs: document MacosSearchField * chore: explain how to retrieve searchKey property via onSuggestionSelected * docs: document onChanged property * feat: add MacosSearchFieldTheme * chore: clean up MacosSearchFieldTheme * test: add test for MacosSearchField * test: add test for MacosSearchFieldTheme * refactor: improve emptyWidget and fields example * refactor: use results instead of suggestions * docs: update README * chore: update changelog and pubspec * test: fix textual date picker test * refactor: rename suggestionHeight to resultHeight * Update CHANGELOG.md * Update lib/src/fields/search_field.dart * Update lib/src/fields/search_field.dart * Update lib/src/fields/search_field.dart * Update lib/src/fields/search_field.dart * Update lib/src/fields/search_field.dart * Update lib/src/theme/overlay_filter.dart * Update lib/src/theme/overlay_filter.dart * Update lib/src/theme/search_field_theme.dart * Update lib/src/theme/search_field_theme.dart * Update lib/src/theme/search_field_theme.dart * Update lib/src/theme/search_field_theme.dart * Update pubspec.yaml * chore: run pub get * chore: run flutter format lib * refactor: remove height property from MacosOverlayFilter and add documentation Co-authored-by: Reuben Turner <groovinchip@gmail.com> * `CustomToolbarItem` widget (#228) * implement CustomToolbarItem widget * chore: update README, changelog and pubspec * test: fix date picker test Co-authored-by: Reuben Turner <groovinchip@gmail.com> * Version `1.1.0+1` - Readme updates (#233) * Improve `MacosTooltip`, add tooltip property to toolbar items, and implement `ToolbarDivider` (closes #231, #232) (#234) Co-authored-by: Minas Giannekas <whiplashoo@users.noreply.github.com>
GroovinChip
added a commit
that referenced
this pull request
May 9, 2022
* `MacosColorWell` docfix (#219) * docs: fix color well docs * chore: bump version & changelog * Version 1.0.1 (#222) * Display search results when searching from a `MacosSearchField` (closes #216) (#224) * feat: implement showing suggestions below/above MacosSearchField * refactor: set and clean up MacosSearchField properties * chore: make offset method private * refactor: remove expanded suggestions mode * refactor: clean up and remove unnecessary properties * refactor: add ability to supply onSelected callback to individual search suggestion items, extend example * fix: show overlay at proper vertical offset * chore: minor clean up of the fields page * refactor: use MacosOverlayFilter for all frosted glass effects of menus and dropdowns * chore: remove unnecessary imports * docs: document MacosSearchField * chore: explain how to retrieve searchKey property via onSuggestionSelected * docs: document onChanged property * feat: add MacosSearchFieldTheme * chore: clean up MacosSearchFieldTheme * test: add test for MacosSearchField * test: add test for MacosSearchFieldTheme * refactor: improve emptyWidget and fields example * refactor: use results instead of suggestions * docs: update README * chore: update changelog and pubspec * test: fix textual date picker test * refactor: rename suggestionHeight to resultHeight * Update CHANGELOG.md * Update lib/src/fields/search_field.dart * Update lib/src/fields/search_field.dart * Update lib/src/fields/search_field.dart * Update lib/src/fields/search_field.dart * Update lib/src/fields/search_field.dart * Update lib/src/theme/overlay_filter.dart * Update lib/src/theme/overlay_filter.dart * Update lib/src/theme/search_field_theme.dart * Update lib/src/theme/search_field_theme.dart * Update lib/src/theme/search_field_theme.dart * Update lib/src/theme/search_field_theme.dart * Update pubspec.yaml * chore: run pub get * chore: run flutter format lib * refactor: remove height property from MacosOverlayFilter and add documentation Co-authored-by: Reuben Turner <groovinchip@gmail.com> * `CustomToolbarItem` widget (#228) * implement CustomToolbarItem widget * chore: update README, changelog and pubspec * test: fix date picker test Co-authored-by: Reuben Turner <groovinchip@gmail.com> * Version `1.1.0+1` - Readme updates (#233) * Improve `MacosTooltip`, add tooltip property to toolbar items, and implement `ToolbarDivider` (closes #231, #232) (#234) * Fix toolbar `actions` RangeError (closes #239) (#240) Co-authored-by: Minas Giannekas <whiplashoo@users.noreply.github.com>
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.
This PR includes:
Improved
MacosTooltip
While working on the rest of the PR's items, I found that the current
MacosTooltip
was a bit different than the one used in Apple design, so I decided to work on this as well.Before:
After:
Apple design (Finder app):
To sum up the changes:
In implementing the above, I also noticed that the way that theme values were passed to the widget was different from how we do it for other components. So, I refactored some of its methods and got rid of some that weren't used at all, to have it work similarly to the rest of the widgets. To sum up:
TooltipTheme
(previously it was derived straight from the MacosTheme's TooltipThemeData).TooltipTheme
, with the standard one being the Apple design default.Tooltip property for Toolbar items
Can now use an optional
tooltipMessage
property for all ToolBar items, to have aMacosTooltip
shown below on hover. Closes #232 .ToolbarDivider widget
A simple utility widget to display a divider between toolbar items. Below screen from the example app and the Notes app for comparison:
Closes #231.
Pre-launch Checklist
dartfmt
on all changed filesCHANGELOG.md
with my changes