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

fix: Provider used after beeing disposed in multi edit page #3454

Merged
merged 2 commits into from
Dec 23, 2022

Conversation

M123-dev
Copy link
Member

What

Fixes #3357

It's not a perfect provider implementation but that was not the goal. The provider is now only used for disposing, the helpers are passed down manually.

@codecov-commenter
Copy link

codecov-commenter commented Dec 22, 2022

Codecov Report

Merging #3454 (fd9e1ff) into develop (c7034d7) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           develop    #3454      +/-   ##
===========================================
- Coverage    11.26%   11.26%   -0.01%     
===========================================
  Files          260      260              
  Lines        12583    12582       -1     
===========================================
- Hits          1418     1417       -1     
  Misses       11165    11165              
Impacted Files Coverage Δ
...oth_app/lib/pages/product/simple_input_widget.dart 1.02% <0.00%> (-1.00%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@monsieurtanuki monsieurtanuki left a comment

Choose a reason for hiding this comment

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

Hi @M123-dev!
When I had a look at this issue days ago, it looked like the problem was more with the controllers than with the helpers. I would have rewritten the code for controllers the same way as you did for helpers, but if your code does solve the issue, that's perfect!
I believe there's now a useless helper static method - if it's indeed useless please get rid of it, for code clarity.

@M123-dev
Copy link
Member Author

Some of the TextEditingController's listen to the provider, some not thats why I left them untuched. this can be changed in another PR, here the priority was for me to solve the problem.

I have removed the static method, there was still one access to it which I have now also changed it to parameter passing.

@M123-dev M123-dev merged commit 9989120 into develop Dec 23, 2022
@M123-dev M123-dev deleted the fix-multi-edit-mode branch December 23, 2022 09:12
@M123-dev
Copy link
Member Author

Also thanks for your review @monsieurtanuki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Errors in power edit screen
3 participants