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

fixed codepane horizontal scroll #787

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

badnikhil
Copy link
Contributor

@badnikhil badnikhil commented Apr 7, 2025

PR Description

changed the drawerwidth and modified the codegenpreviewer
Now the text/singlechildscrollview takes full height of the box ensuring scroll works around the whole box instead of just the text

Related Issues

Checklist

  • I have gone through the contributing guide
  • I have updated my branch and synced it with project main branch before making this PR
  • I am using the latest Flutter stable branch (run flutter upgrade and verify)
  • I have run the tests (flutter test) and all tests are passing

Added/updated tests?

We encourage you to add relevant test cases.

  • Yes
  • No, and this is why: not required

OS on which you have developed and tested the feature?

  • Windows
  • android
  • Linux

@badnikhil badnikhil changed the title done fixed codepane horizontal scroll Apr 7, 2025
SelectionArea(
child: SingleChildScrollView(
controller: controllerV,
child: IntrinsicHeight(
Copy link
Contributor

Choose a reason for hiding this comment

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

is the IntrinsicHeight widget needed here?

Copy link
Contributor Author

@badnikhil badnikhil Apr 7, 2025

Choose a reason for hiding this comment

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

nope because of constrained box this widget is not necessary here.. Sorry for this oversight .Actaully i was exploring for something which can increase the height of text/singlechildscrollview to its parent box's height efficiently and i tried many things (ignore if i failed to make you understand). i just forget to clean this!
Should I remove this and push another commit?

Copy link
Contributor

@DenserMeerkat DenserMeerkat Apr 7, 2025

Choose a reason for hiding this comment

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

Got it 👍🏼.
Yes, push a commit and remove it.
Apart from that the PR seems fine and the solution works.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also, the drawerwidth is set to zero. can you confirm if this fits with the intended user experience?

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.

Horizontal scroll not working in CodePane
2 participants