Skip to content

chore: update Mix to 2.1.0 and add mix_lint#61

Open
tilucasoli wants to merge 3 commits into
mainfrom
chore/update-mix-2.1-and-mix-lint
Open

chore: update Mix to 2.1.0 and add mix_lint#61
tilucasoli wants to merge 3 commits into
mainfrom
chore/update-mix-2.1-and-mix-lint

Conversation

@tilucasoli

Copy link
Copy Markdown
Collaborator

Summary

  • Bump mix, mix_annotations and mix_generator to ^2.1.0. The styler-generator work this repo previously pulled from the feat/styler-generator git branch has shipped in the published 2.1.0 line, so the dependency_overrides for those packages are removed and Mix now resolves from pub.dev.
  • Regenerate every component *.g.dart with the 2.1.0 generator (field reordering + the new modifier(WidgetModifierConfig) setter from @MixableModifier).
  • Add mix_lint with the Mix 2.0 rule set, enabled via the analyzer plugins: field in a new workspace-root analysis_options.yaml (the analyzer rejects plugins: inside member packages). mix_lint 2.0.0 (the analysis_server_plugin rebuild required for this config) is not yet published, so it is sourced from git via a dependency_override.

Follows the mix_lint tutorial.

Test plan

  • flutter pub get resolves (mix/mix_annotations/mix_generator at 2.1.0, mix_lint 2.0.0 from git)
  • dart run build_runner build regenerates outputs cleanly
  • flutter analyze on the remix package → No issues found
  • Restart the analysis server / IDE to confirm mix_lint diagnostics surface live

Made with Cursor

tilucasoli and others added 2 commits June 29, 2026 07:44
Bump mix, mix_annotations and mix_generator to ^2.1.0 (now published on
pub.dev) and drop the feat/styler-generator git overrides. Regenerate the
component *.g.dart outputs with the 2.1.0 generator.

Add mix_lint with the Mix 2.0 rule set, configured via the analyzer
`plugins:` field in a new workspace-root analysis_options.yaml. mix_lint
2.0.0 (the analysis_server_plugin rebuild) is sourced from git until it is
published.

Co-authored-by: Cursor <cursoragent@cursor.com>
Bump naked_ui from 0.2.0-beta.7 to 1.0.0-beta.1 and adapt RemixTooltip to
the renamed NakedTooltip API: showDuration -> touchDelay, waitDuration ->
hoverDelay, semanticsLabel -> semanticLabel.

Co-authored-by: Cursor <cursoragent@cursor.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the workspace to Mix ^2.1.0, regenerates Mix-generated component *.g.dart outputs accordingly, and adds workspace-root analyzer plugin configuration for mix_lint (sourced via a git override until published).

Changes:

  • Bump mix, mix_annotations, mix_generator to ^2.1.0, update naked_ui to ^1.0.0-beta.1, and simplify/remove previous Mix git overrides.
  • Add workspace-root analysis_options.yaml enabling mix_lint diagnostics via analyzer plugins:.
  • Regenerate component *.g.dart files and adjust RemixTooltip to match updated naked_ui tooltip API.

Reviewed changes

Copilot reviewed 4 out of 25 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pubspec.yaml Updates workspace deps and adds a git dependency_overrides entry for mix_lint.
pubspec.lock Captures updated resolved dependency graph (Mix 2.1.0, new analyzer plugin deps, etc.).
packages/remix/pubspec.yaml Bumps Mix deps to ^2.1.0, naked_ui to ^1.0.0-beta.1, adds mix_lint dev dependency.
analysis_options.yaml Adds workspace-root analyzer plugin config enabling mix_lint diagnostics.
packages/remix/lib/src/components/tooltip/tooltip_widget.dart Updates NakedTooltip usage to new parameter names and builder signature.
packages/remix/lib/src/components/tooltip/tooltip.g.dart Regenerated Mix outputs (ordering changes + new modifier-related API).
packages/remix/lib/src/components/toggle/toggle.g.dart Regenerated Mix outputs (ordering changes + new modifier-related API).
packages/remix/lib/src/components/textfield/textfield.g.dart Regenerated Mix outputs (ordering changes + new modifier-related API).
packages/remix/lib/src/components/tabs/tabs.g.dart Regenerated Mix outputs (debug property formatting + new modifier-related API).
packages/remix/lib/src/components/switch/switch.g.dart Regenerated Mix outputs (new modifier-related API).
packages/remix/lib/src/components/spinner/spinner.g.dart Regenerated Mix outputs (ordering changes + new modifier-related API).
packages/remix/lib/src/components/slider/slider.g.dart Regenerated Mix outputs (ordering changes + new modifier-related API).
packages/remix/lib/src/components/select/select.g.dart Regenerated Mix outputs (ordering changes + new modifier-related API).
packages/remix/lib/src/components/radio/radio.g.dart Regenerated Mix outputs (new modifier-related API).
packages/remix/lib/src/components/progress/progress.g.dart Regenerated Mix outputs (ordering changes + new modifier-related API).
packages/remix/lib/src/components/menu/menu.g.dart Regenerated Mix outputs (ordering changes + new modifier-related API).
packages/remix/lib/src/components/icon_button/icon_button.g.dart Regenerated Mix outputs (new modifier-related API).
packages/remix/lib/src/components/divider/divider.g.dart Regenerated Mix outputs (debug property formatting + new modifier-related API).
packages/remix/lib/src/components/dialog/dialog.g.dart Regenerated Mix outputs (ordering changes + new modifier-related API).
packages/remix/lib/src/components/checkbox/checkbox.g.dart Regenerated Mix outputs (new modifier-related API).
packages/remix/lib/src/components/card/card.g.dart Regenerated Mix outputs (debug property formatting + new modifier-related API).
packages/remix/lib/src/components/callout/callout.g.dart Regenerated Mix outputs (ordering changes + new modifier-related API).
packages/remix/lib/src/components/badge/badge.g.dart Regenerated Mix outputs (new modifier-related API).
packages/remix/lib/src/components/avatar/avatar.g.dart Regenerated Mix outputs (ordering changes + new modifier-related API).
packages/remix/lib/src/components/accordion/accordion.g.dart Regenerated Mix outputs (ordering changes + new modifier-related API).
Files not reviewed (20)
  • packages/remix/lib/src/components/accordion/accordion.g.dart: Generated file
  • packages/remix/lib/src/components/avatar/avatar.g.dart: Generated file
  • packages/remix/lib/src/components/badge/badge.g.dart: Generated file
  • packages/remix/lib/src/components/callout/callout.g.dart: Generated file
  • packages/remix/lib/src/components/card/card.g.dart: Generated file
  • packages/remix/lib/src/components/checkbox/checkbox.g.dart: Generated file
  • packages/remix/lib/src/components/dialog/dialog.g.dart: Generated file
  • packages/remix/lib/src/components/divider/divider.g.dart: Generated file
  • packages/remix/lib/src/components/icon_button/icon_button.g.dart: Generated file
  • packages/remix/lib/src/components/menu/menu.g.dart: Generated file
  • packages/remix/lib/src/components/progress/progress.g.dart: Generated file
  • packages/remix/lib/src/components/radio/radio.g.dart: Generated file
  • packages/remix/lib/src/components/select/select.g.dart: Generated file
  • packages/remix/lib/src/components/slider/slider.g.dart: Generated file
  • packages/remix/lib/src/components/spinner/spinner.g.dart: Generated file
  • packages/remix/lib/src/components/switch/switch.g.dart: Generated file
  • packages/remix/lib/src/components/tabs/tabs.g.dart: Generated file
  • packages/remix/lib/src/components/textfield/textfield.g.dart: Generated file
  • packages/remix/lib/src/components/toggle/toggle.g.dart: Generated file
  • packages/remix/lib/src/components/tooltip/tooltip.g.dart: Generated file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 35 to 37
return NakedTooltip(
overlayBuilder: (context, info) =>
overlayBuilder: (context, animation) =>
Box(styleSpec: spec.container, child: tooltipChild),
Comment thread pubspec.yaml
Comment on lines +14 to +18
mix_lint:
git:
url: https://github.com/btwld/mix.git
ref: feat/styler-generator
path: packages/mix
mix_annotations:
git:
url: https://github.com/btwld/mix.git
ref: feat/styler-generator
path: packages/mix_annotations
mix_generator:
git:
url: https://github.com/btwld/mix.git
ref: feat/styler-generator
path: packages/mix_generator
ref: main
path: packages/mix_lint
Co-authored-by: Cursor <cursoragent@cursor.com>
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.

2 participants