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

The adaptive_scrollbar can't use the mouse to scroll #3

Open
zhongkai886 opened this issue Jan 3, 2022 · 2 comments
Open

The adaptive_scrollbar can't use the mouse to scroll #3

zhongkai886 opened this issue Jan 3, 2022 · 2 comments

Comments

@zhongkai886
Copy link

zhongkai886 commented Jan 3, 2022

adaptive_scrollbar need mouse to scroll singleChildScrollView [ child widget ]

Although the [ child widget ] width can be set , but I need adaptive_scrollbar to scroll through the mouse

動畫

@rulila52
Copy link
Owner

can you give me your example code?

@zhongkai886
Copy link
Author

example code
I use screen width make a container in SingleChildScrollView
AdaptiveScrollbar and SingleChildScrollView have same width
improve AdaptiveScrollbar can't use mouse scroll issue


Flexible(
  fit: FlexFit.tight,
  flex: 1,
  child: AdaptiveScrollbar(
    sliderDefaultColor: sliderDefaultColor,
    sliderActiveColor: sliderActiveColor,
    width: scrollWidth,
    controller: _ruleSettingVerticalScrollController,
    child: AdaptiveScrollbar(
      sliderDefaultColor: sliderDefaultColor,
      sliderActiveColor: sliderActiveColor,
      position: ScrollbarPosition.bottom,
      width: scrollWidth,
      controller: _ruleSettingHorizontalScrollController,
      child: SingleChildScrollView(
        scrollDirection: Axis.vertical,
        controller: _ruleSettingVerticalScrollController,
        child: SingleChildScrollView(
          scrollDirection: Axis.horizontal,
          controller: _ruleSettingHorizontalScrollController,
          child: Form(
            key: _examItemRulesFormKey,
            child: Obx(
              () => Container(
                width: MainController.instance.mainContainerWidth * 0.5,
                child: Row(
                  mainAxisSize: MainAxisSize.min,
                  mainAxisAlignment: MainAxisAlignment.start,
                  children: [
                    
                
                  ],
                ),
              ),
            ),
          ),
        ),
      ),
    ),
  ),
),

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

2 participants