Flutter 如何将元素设置到SingleCildScrollView的底部?

Flutter 如何将元素设置到SingleCildScrollView的底部?,flutter,flutter-layout,Flutter,Flutter Layout,我已经创建了一个可以很好地处理列的屏幕,但由于键盘的原因,我需要滚动。我使用的是SingleChildScrollView,但该列的MainAxisAligment在Scrollable中不起作用 主要的问题是-我需要在Scrollable的底部设置小部件 我在谷歌上搜索了这个问题,发现了以下问题: 但这个具体问题没有解决办法 我的代码: 由于键盘的缘故,我想要一些类似滚动内容的东西。 但是我已经在顶部的小部件栏中包装了一个扩展的小部件,这样它将一直扩展到底部。然后,把你的登录按钮放在下面。然后

我已经创建了一个可以很好地处理列的屏幕,但由于键盘的原因,我需要滚动。我使用的是SingleChildScrollView,但该列的MainAxisAligment在Scrollable中不起作用

主要的问题是-我需要在Scrollable的底部设置小部件

我在谷歌上搜索了这个问题,发现了以下问题: 但这个具体问题没有解决办法

我的代码:

由于键盘的缘故,我想要一些类似滚动内容的东西。
但是我已经在顶部的小部件栏中包装了一个扩展的小部件,这样它将一直扩展到底部。然后,把你的登录按钮放在下面。然后,键盘不会覆盖登录按钮小部件。

将展开的小部件包装在顶部的列小部件中,这样它将一直展开到底部。然后,把你的登录按钮放在下面。然后,键盘将不会覆盖登录按钮小部件。

@anmol.majhail在窗体和列之间?@anmol.majhail在窗体和列之间?这将在键盘出现时使底部溢出这将在键盘出现时使底部溢出
SingleChildScrollView(
        padding: const EdgeInsets.symmetric(horizontal: 16),
        child: new Column(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: <Widget>[
            Form(
              child: Column(
                children: <Widget>[
                  buildTextField(
                    'E-mail',
                    (text) {},
                    controller: _loginController,
                    textColor: Theme.of(context).buttonColor,
                    hintColor: Theme.of(context).hintColor,
                    margin: EdgeInsets.only(top: 16),
                  ),
                  buildTextField(
                    'Password',
                    (text) {},
                    focus: _textSecondFocusNode,
                    controller: _passwordController,
                    onSubmit: (_) => presenter.login(_loginController.text, _passwordController.text),
                    textColor: Theme.of(context).buttonColor,
                    hintColor: Theme.of(context).hintColor,
                    letterSpacing: 15,
                    icon: InkWell(
                      onTap: () {
                      },
                      child: Image.asset('assets/ic_eye.png'),
                    ),
                    margin: const EdgeInsets.only(top: 16),
                    padding: const EdgeInsets.only(left: 16, top: 4, bottom: 4),
                    obscureText: true,
                  ),
                ],
              ),
            ),
            Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                Padding(
                  padding: const EdgeInsets.only(top: 0),
                  child: InkWell(
                    child: Text(
                      'Registration',
                      style: TextStyle(color: Theme.of(context).buttonColor, decoration: TextDecoration.underline),
                    ),
                    onTap: () =>
                        Navigator.push(context, CupertinoPageRoute(builder: (context) => StartRegistrationScreen())),
                  ),
                ),
                Buttons.buildRaisedButton(
                  Text(
                    'Login',
                    style: TextStyle(color: Colors.white, fontSize: 17, fontFamily: 'SFUIDisplay'),
                  ),
                  (){},
                  color: Theme.of(context).buttonColor,
                  disabledColor: Theme.of(context).disabledColor,
                  margin: const EdgeInsets.only(top: 16),
                ),
                Padding(
                  padding: const EdgeInsets.only(top: 16, bottom: 16),
                  child: Text(
                    'Forgot password',
                    style: TextStyle(
                      color: Theme.of(context).buttonColor,
                      decoration: TextDecoration.underline,
                    ),
                  ),
                )
              ],
            )
          ],
        ),
      );