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

Change calculator example to use state widget #32

Merged
merged 3 commits into from May 12, 2018
Merged

Change calculator example to use state widget #32

merged 3 commits into from May 12, 2018

Conversation

@raphlinus
Copy link
Member

@raphlinus raphlinus commented May 5, 2018

Store calculator state in a widget in the tree, rather than in a separate Rc<RefCell<>> struct.

raphlinus added 3 commits May 5, 2018
Store calculator state in a widget in the tree, rather than in a
separate Rc<RefCell<>> struct.
Instead of a custom widget, use a generic EventForwarder, and have the
calculator state and action logic in its listener.
@raphlinus raphlinus merged commit 6d41443 into master May 12, 2018
1 check passed
Loading
@raphlinus raphlinus deleted the no_refcell branch May 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant