title: Flutter - A RenderFlex overflowed by 190 pixels on the bottom in showModalBottomSheet
body: <p>My showModalBottomSheet showing bottom overflow error :
  My Code of bottomSheet:</p>
  <pre><code> loginSheet(BuildContext context) {
      return showModalBottomSheet(
          isScrollControlled: true,
          context: context,
          builder: (context) {
            return Padding(
              padding: EdgeInsets.only(
                bottom: MediaQuery.of(context).viewInsets.bottom,
              ),
              child: Container(
                height: MediaQuery.of(context).size.height * 0.30,
                width: MediaQuery.of(context).size.width,
                child: Column(
                  children: [
                    Padding(
                      padding: EdgeInsets.symmetric(horizontal: 150.0),
                      child: Divider(
                        thickness: 4.0,
                        color: constantColors.whiteColor,
                      ),
                    ),
                    Padding(
                      padding: EdgeInsets.symmetric(horizontal: 10.0),
                      child: TextField(
                        controller: userEmailController,
                        decoration: InputDecoration(
                          hintText: 'Enter Email...',
                          hintStyle: TextStyle(
                            color: constantColors.whiteColor,
                            fontWeight: FontWeight.bold,
                            fontSize: 16.0,
                          ),
                        ),
                        style: TextStyle(
                          color: constantColors.whiteColor,
                          fontWeight: FontWeight.bold,
                          fontSize: 18.0,
                        ),
                      ),
                    ),
                    Padding(
                      padding: EdgeInsets.symmetric(horizontal: 10.0),
                      child: TextField(
                        controller: userPasswordController,
                        decoration: InputDecoration(
                          hintText: 'Enter Password...',
                          hintStyle: TextStyle(
                            color: constantColors.whiteColor,
                            fontWeight: FontWeight.bold,
                            fontSize: 16.0,
                          ),
                        ),
                        style: TextStyle(
                          color: constantColors.whiteColor,
                          fontWeight: FontWeight.bold,
                          fontSize: 18.0,
                        ),
                      ),
                    ),
                    FloatingActionButton(
                      backgroundColor: constantColors.blueColor,
                      child: Icon(
                        FontAwesomeIcons.check,
                        color: constantColors.whiteColor,
                      ),
                      onPressed: () {
                        if (userEmailController.text.isNotEmpty) {
                          Provider.of&lt;Authentication&gt;(context, listen: false)
                              .logIntoAccount(userEmailController.text,
                                  userPasswordController.text)
                              .whenComplete(() =&gt; Navigator.pushReplacement(
                                  context,
                                  PageTransition(
                                      child: Homepage(),
                                      type: PageTransitionType.bottomToTop)));
                        } else {
                          warningText(context, 'Fill All the Data');
                        }
                      },
                    )
                  ],
                ),
                decoration: BoxDecoration(
                    color: constantColors.blueGreyColor,
                    borderRadius: BorderRadius.only(
                      topLeft: Radius.circular(12.0),
                      topRight: Radius.circular(12.0),
                    )),
              ),
            );
          });
    }
  
  </code></pre>
  <p>Inspect Widget:
  <a href="https://i.stack.imgur.com/8So38.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8So38.png" alt="enter image description here" /></a></p>
  <p>Error:</p>
  <blockquote>
  <p>A RenderFlex overflowed by 190 pixels on the bottom.</p>
  </blockquote>
  <p>The relevant error-causing widget was
  Column
  lib\…\landingPage\landingHelpers.dart:188
  You can inspect this widget using the 'Inspect Widget' button in the VS Code notification.
  The overflowing RenderFlex has an orientation of Axis.vertical.
  The edge of the RenderFlex that is overflowing has been marked in the rendering with a yellow and black striped pattern. This is usually caused by the contents being too big for the RenderFlex.</p>
  <p>Consider applying a flex factor (e.g. using an Expanded widget) to force the children of the RenderFlex to fit within the available space instead of being sized to their natural size.
  This is considered an error condition because it indicates that there is content that cannot be seen. If the content is legitimately bigger than the available space, consider clipping it with a ClipRect widget before putting it in the flex, or using a scrollable container rather than a Flex, like a ListView.</p>
  <p>The specific RenderFlex in question is: RenderFlex#6aa4c OVERFLOWING</p>
  <p>I Already Did this</p>
  <pre><code>        isScrollControlled: true,
  </code></pre>
  <p>&amp;</p>
  <pre><code>padding: EdgeInsets.only(
                bottom: MediaQuery.of(context).viewInsets.bottom,
              ),
  </code></pre>