SingleChildScrollView inside SingleChildScrollView - can't scroll parent

168

Please add physics to inner List as NeverScrollableScrollPhysics()

Share:
168
Ravindra S. Patil
Author by

Ravindra S. Patil

Flutter Developer Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

Updated on January 03, 2023

Comments

  • Ravindra S. Patil
    Ravindra S. Patil over 1 year

    I got a SingleChildScrollView looking like this:

        Widget build(BuildContext context) {
        return SingleChildScrollView(
          physics: BouncingScrollPhysics(),
          scrollDirection: Axis.vertical,
          child: Container(
            child: Column(
              mainAxisSize: MainAxisSize.min,
              crossAxisAlignment: CrossAxisAlignment.center,
              children: [
                // ... some other widgets come here ...
                CommunityListView(),
              ],
            ),
          ),
        );
      }
    

    And the CommunityListView() inside of that is another SingleChildScrollView. My Problem is, once is scroll inside of the CommunityListView(), i can't get out of it and the user is stuck in this ScrollView.

    Does someone know how I can fix that? Thank you !

    • Yeasin Sheikh
      Yeasin Sheikh over 2 years
      why do you need 2 scrollable widget ?