Skip to content

fixed codepane horizontal scroll #787

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

Merged
merged 5 commits into from
Apr 12, 2025
Merged

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

@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.

@DenserMeerkat one more thing, the drawerwidth is set to zero. can you confirm if this fits with the intended user experience?

Copy link
Contributor

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?

I think you can remove the drawerWidth property instead of setting it to 0—by default, it will assign a small value to it (e.g., 20) based on the screen size.

Copy link
Contributor Author

@badnikhil badnikhil Apr 9, 2025

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?

I think you can remove the drawerWidth property instead of setting it to 0—by default, it will assign a small value to it (e.g., 20) based on the screen size.

The scroll experience is not very good... Setting it to 0 is better but limits the drawer...Let's wait for mentor's suggestion.

@animator
Copy link
Member

Thanks @badnikhil @Udhay-Adithya @DenserMeerkat
We can finally put this issue to rest 🪦

@animator animator merged commit 6ad6dc9 into foss42:main Apr 12, 2025
@badnikhil
Copy link
Contributor Author

Thanks @badnikhil @Udhay-Adithya @DenserMeerkat We can finally put this issue to rest 🪦

Glad to contribute! will be dropping a PR for Alamofire-Swift soon .

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
4 participants