akbarpulatov / flutter_awesome_select

Forked from https://github.com/davigmacode/flutter_smart_select, updated legacy code, migrated to null safety and more. AwesomeSelect allows you to easily convert your usual form select or dropdown into dynamic page, popup dialog, or sliding bottom sheet with various choices input such as radio, checkbox, switch, chips, or even custom input. Supports single and multiple choice.
https://pub.dev/packages/awesome_select
MIT License
48 stars 56 forks source link

The Scrollbar's ScrollController has no ScrollPosition attached #38

Open amit-flutter opened 2 years ago

amit-flutter commented 2 years ago

Video : https://vimeo.com/706511556

I have recorded one video in which I have implemented a color picker using the choice builder and choose the axis as horizontal then it will show internal error related to scroll controller could you please review it.

Also if you observe after selecting the right color it pop bottom sheet and show error page "no search result found" -> but although selecting color work perfectly please review it. i think we have to user willpopscope over here.

======== Exception caught by animation library =====================================================

The following assertion was thrown while notifying status listeners for AnimationController: The Scrollbar's ScrollController has no ScrollPosition attached.

A Scrollbar cannot be painted without a ScrollPosition.

The Scrollbar attempted to use the PrimaryScrollController. This ScrollController should be associated with the ScrollView that the Scrollbar is being applied to. A ScrollView with an Axis.vertical ScrollDirection will automatically use the PrimaryScrollController if the user has not provided a ScrollController, but a ScrollDirection of Axis.horizontal will not. To use the PrimaryScrollController explicitly, set ScrollView.primary to true for the Scrollable widget. When the exception was thrown, this was the stack:

0 RawScrollbarState._debugCheckHasValidScrollPosition. (package:flutter/src/widgets/scrollbar.dart:1300:9)

1 RawScrollbarState._debugCheckHasValidScrollPosition (package:flutter/src/widgets/scrollbar.dart:1325:6)

2 RawScrollbarState._validateInteractions (package:flutter/src/widgets/scrollbar.dart:1272:14)

3 AnimationLocalStatusListenersMixin.notifyStatusListeners (package:flutter/src/animation/listener_helpers.dart:233:19)

4 AnimationController._checkStatusChanged (package:flutter/src/animation/animation_controller.dart:815:7)

5 AnimationController._startSimulation (package:flutter/src/animation/animation_controller.dart:749:5)

6 AnimationController._animateToInternal (package:flutter/src/animation/animation_controller.dart:612:12)

7 AnimationController.reverse (package:flutter/src/animation/animation_controller.dart:494:12)

8 RawScrollbarState._maybeStartFadeoutTimer.

(package:flutter/src/widgets/scrollbar.dart:1451:37)

(elided 11 frames from class _RawReceivePortImpl, class _Timer, dart:async, and dart:async-patch)

The AnimationController notifying status listeners was: AnimationController#6734e(◀ 1.000)

====================================================================================================

you guys are working so hard. thank you so much from all of us .

hellomohsinhello commented 1 year ago

@amit-flutter Did you found any soluation?