-
Notifications
You must be signed in to change notification settings - Fork 529
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
base: main
Are you sure you want to change the base?
Conversation
lib/widgets/previewer_codegen.dart
Outdated
SelectionArea( | ||
child: SingleChildScrollView( | ||
controller: controllerV, | ||
child: IntrinsicHeight( |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
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
main
branch before making this PRflutter upgrade
and verify)flutter test
) and all tests are passingAdded/updated tests?
We encourage you to add relevant test cases.
OS on which you have developed and tested the feature?