Skip to content

Conversation

@tilucasoli
Copy link
Collaborator

Related issue

#80
This PR addresses the issues raised at the beginning of Mix development. We now have a more mature package that makes it easy to add custom ContextVariant.

Description

Introduces an example demonstrating how to create and use a custom ContextVariant in Flutter using an InheritedWidget to detect if the shift key is pressed.
The example includes a badge widget that changes style based on the shift key state.

Changes

just add a new example

Review Checklist

  • Testing: Have you tested your changes, including unit tests and integration tests for affected code?
  • Breaking Changes: Does this change introduce breaking changes affecting existing code or users?
  • Documentation Updates: Are all relevant documentation files (e.g. README, API docs) updated to reflect the changes in this PR?
  • Website Updates: Is the website containing the updates you make on documentation?

Additional Information (optional)

Is there any additional context or documentation that might be helpful for reviewers?

Introduces an example demonstrating how to create and use a custom context variant in Flutter using an InheritedWidget to detect if the shift key is pressed. The example includes a badge widget that changes style based on the shift key state.
@vercel
Copy link
Contributor

vercel bot commented Dec 16, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
mix-docs Ready Ready Preview, Comment Dec 16, 2025 1:32am

@docs-page
Copy link

docs-page bot commented Dec 16, 2025

To view this pull requests documentation preview, visit the following URL:

docs.page/btwld/mix~799

Documentation is deployed and generated using docs.page.

@tilucasoli tilucasoli changed the title Add custom context variant example for shift key docs: Add custom context variant example for shift key Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants