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

Add support for Two Dimensional Scroll across all panes in the app #675

Open
Udhay-Adithya opened this issue Mar 18, 2025 · 5 comments
Open

Comments

@Udhay-Adithya
Copy link
Contributor

Udhay-Adithya commented Mar 18, 2025

Tell us about the task you want to perform and are unable to do so because the feature is not available

Currently, in panes where both horizontal and vertical scrolling are working as expected, but only one direction works at a time. This limits smooth navigation when dealing with large content requiring two-dimensional scroll support.

Steps to Reproduce:

  1. Open a code pane with content that exceeds both width and height.
  2. Try scrolling horizontally and vertically.
  3. Notice that only one direction works at a time.

Expected Behavior:

  1. The code panes should support simultaneous horizontal and vertical scrolling without interference.
  2. Users should be able to freely navigate in both directions using a trackpad, mouse wheel, or gestures.

Current Behaviour:

Screen.Recording.2025-03-18.at.2.09.37.PM.mp4

Describe the solution/feature you'd like us to add

Add support for Two Dimensional Scroll across all panes in the app

Any other feedback you would like to provide

This might help: TwoDimensionalScrollView

@Udhay-Adithya Udhay-Adithya added the enhancement New feature or request label Mar 18, 2025
@badnikhil
Copy link
Contributor

Interactive viewer can also do the work maybe.

@connectwithpankaj
Copy link

@Udhay-Adithya
Add the below code in your splitview_drawer.dart file
body: SafeArea(
child: Scrollbar(
thumbVisibility: true,
child: SingleChildScrollView(
scrollDirection: Axis.vertical,
child: SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: mainContent,
),
),
),
),

replacing this line
body: SafeArea(
child: mainContent,
),

@pratapsingh9
Copy link
Contributor

@Udhay-Adithya please assign this to me

@Udhay-Adithya
Copy link
Contributor Author

@Udhay-Adithya please assign this to me

You can raise a PR if you have solution to this. Also, read why we do not assign issues to anyone?

@connectwithpankaj
Copy link

ok @Udhay-Adithya i will raise a PR

@animator animator removed the enhancement New feature or request label Mar 29, 2025
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

No branches or pull requests

5 participants