79443261

Date: 2025-02-16 14:02:08
Score: 2
Natty:
Report link

good day bosses, i have tried all that was written above but did not work so what solved it for me was the scrollControlDisabledMaxHeightRatio parameter of the showModalBottomSheet function. its set to 9/16 by default, I then change it to 8/10, like this:

            showModalBottomSheet(
                        scrollControlDisabledMaxHeightRatio: 8 / 10,
                        enableDrag: false,
                        context: context,
                        builder: (context) => SingleChildScrollView(
                            child: Padding(
                          padding: EdgeInsets.only(
                            bottom:MediaQuery.of(context).viewInsets.bottom),
                          child: YourWidget(),
                        )),
                      );
Reasons:
  • Blacklisted phrase (1): did not work
  • Blacklisted phrase (1): good day
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Olasiyan Daniel