Repository navigation
chore: Upgrade shad to 1.0.2 and fix the menubar menus - #41
Merged
Merged
Conversation
shad 1.0 ships no fonts, so wonky_ui now bundles Inter, Geist and Geist Mono (with their OFL licences) and every reference goes through WonkyFonts. 1.0.1 decouples shad from Material: ShadThemeMode replaces ThemeMode, and the shell, the preview app and the test harnesses wrap their content in ShadMaterial for the Material widgets we still use (super_editor, re_editor, SelectableText, ReorderableListView). The menus are adapted to shad 1.0's exit animation and highlight: - A closing menu keeps its last items while it animates out, instead of a slim, empty menu. - Menubar menus close at once (ShadContextMenuTheme.popoverReverseDuration, honoured since 1.0.2), so switching menus never shows two. - Focus follows the pointer, as in Radix menus, so a keyboard-focused item and a hovered one are never both highlighted. - The lazy menu max height is measured while open only, as the anchor may be gone while the menu closes. Also regenerates the Lucide glyph table from lucide_icons_flutter 4.0.1 and applies the dart fix renames (displayDuration, fallback). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Upgrades
shadfrom 0.99.4 to 1.0.2 (../shad/MIGRATION.md) and fixes the menu regressions that 1.0 brought to the main menu.shad 1.0 – 1.0.2
wonky_uinow ships Inter, Geist and Geist Mono (with their OFL licences) as package fonts, and every reference goes through the newWonkyFonts(packages/wonky_ui/<Family>). This covers the theme, charts, Sheets' font list, Write's fonts andtool/prune_web_fonts.dart.ShadThemeModereplacesThemeMode. The shell, the preview app and the Drive, Sheets and Write test harnesses wrap their content inShadMaterial, because super_editor, re_editor,SelectableTextandReorderableListViewstill need Material.dart fixrenames:displayDurationandfallback.Menu fixes
ShadContextMenuTheme.popoverReverseDuration, which 1.0.2 honours. Hovering another title therefore never shows the old menu on top of the new one. Dropdowns and context menus keep the fade.RenderBox was not laid out).Testing
packages/wonky_ui/test/widgets/menu_test.dart. Each fails without its fix.maintoo.dart analyzeis clean,menu_testpasses 16/16, and wonky_ui passes 133/133. The other suites are left to CI.🤖 Generated with Claude Code