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

Pull request for #16 #20

Merged
merged 13 commits into from
Aug 15, 2023
Merged

Pull request for #16 #20

merged 13 commits into from
Aug 15, 2023

Conversation

rneswold
Copy link
Contributor

This pull request will stay open until we complete #16. But this initial push is the first step in completing it. With this pull-request, all the GraphQL queries/subscriptions have been moved into a single module that defines a DrMem "provider" widget.

Further progress on this PR will have the widget removed from this project and moved into a Flutter package so any app can use it.

This commit creates a `pkg/drmem_provider` directory which will hold
the code for a DrMem widget. The `.graphql` files have been moved and
the build tools create the generated code in the correct spot.
This widget handles connections to all registered nodes.
This allows the data field to render differently when the device is
settable.
Boolean values were rendered using `CheckBox` widgets. This had several
issues:

- It rendered differently on different platforms.
- On Android, for instance, the adding and removing of the check was
  animated and fast-changing booleans weren/t getting displayed
  accurately.

With this commit, we use `Icons` to visualize the state.
@rneswold rneswold merged commit be95e6a into DrMemCS:main Aug 15, 2023
1 check passed
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.

1 participant