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: The Scrollbar's ScrollController has no ScrollPosition attached #3808

Merged
merged 2 commits into from
May 18, 2023

Conversation

g123k
Copy link
Collaborator

@g123k g123k commented Mar 25, 2023

The Scrollbar in the Edit product page doesn't have a Controller attached, but only the ListView below.

It will fix #3807

@g123k g123k requested a review from a team as a code owner March 25, 2023 09:02
@g123k g123k self-assigned this Mar 25, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #3808 (5d6cbbc) into develop (9d2db67) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           develop    #3808      +/-   ##
===========================================
- Coverage    10.67%   10.67%   -0.01%     
===========================================
  Files          272      272              
  Lines        13547    13548       +1     
===========================================
  Hits          1446     1446              
- Misses       12101    12102       +1     
Impacted Files Coverage Δ
...mooth_app/lib/pages/product/edit_product_page.dart 0.45% <0.00%> (-0.01%) ⬇️

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

@g123k g123k changed the title Fix for The Scrollbar's ScrollController has no ScrollPosition attached fix:The Scrollbar's ScrollController has no ScrollPosition attached Mar 25, 2023
@g123k g123k changed the title fix:The Scrollbar's ScrollController has no ScrollPosition attached fix: The Scrollbar's ScrollController has no ScrollPosition attached Mar 25, 2023
Comment on lines +121 to +124
child: PrimaryScrollController(
controller: _controller,
child: Scrollbar(
child: ListView(
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
child: PrimaryScrollController(
controller: _controller,
child: Scrollbar(
child: ListView(
child: ListView(
controller: _controller,

Just curious: could you try this instead? That would look much easier.

Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious: could you try this instead? That would look much easier.

@g123k ping
It should be a quick test and if it's not successful I'll quickly approve the current PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oops didn't saw your comment.
Basically it will do the same, by inheriting from it, it think it's better as it allows to use a different one in the future

Copy link
Contributor

Choose a reason for hiding this comment

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

I really have a preference for the simple syntax if it does exactly the same.
And I would let the future developers worry about using a different syntax only if they need it.

@teolemon
Copy link
Member

Honestly, it's just an error in the console, so let's merge this.

@teolemon teolemon merged commit 939b0d9 into openfoodfacts:develop May 18, 2023
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.

The Scrollbar's ScrollController has no ScrollPosition attached.
4 participants