rulila52 / adaptive-scrollbar

MIT License
11 stars 7 forks source link

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

Open zhongkai886 opened 2 years ago

zhongkai886 commented 2 years ago

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 commented 2 years ago

can you give me your example code?

zhongkai886 commented 2 years ago

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: [

                  ],
                ),
              ),
            ),
          ),
        ),
      ),
    ),
  ),
),