android – 在颤动时底部超载213像素

android – 在颤动时底部超载213像素,第1张

概述嗨,我正在尝试创建登录屏幕.它对我来说很好.当我打开键盘然后它给我一个错误底部重载213像素. Widget LoginPage() { return new Scaffold(body: Container( height: MediaQuery.of(context).size.height, decoration: BoxDecoration( 嗨,我正在尝试创建登录屏幕.它对我来说很好.当我打开键盘然后它给我一个错误底部重载213像素.

Widget LoginPage() {    return new Scaffold(body: Container(      height: Mediaquery.of(context).size.height,decoration: Boxdecoration(        color: colors.white,image: decorationImage(          colorFilter: new colorFilter.mode(              colors.black.withOpacity(0.05),BlendMode.dstAtop),image: Assetimage('assets/images/mountains.jpg'),fit: BoxFit.cover,),child: new Column(        children: <Widget>[          Container(            padding: EdgeInsets.all(120.0),child: Center(              child: Icon(                Icons.headset_mic,color: colors.redAccent,size: 50.0,new Row(            children: <Widget>[              new Expanded(                child: new padding(                  padding: const EdgeInsets.only(left: 40.0),child: new Text(                    "EMAIL",style: TextStyle(                      FontWeight: FontWeight.bold,FontSize: 15.0,],new Container(            wIDth: Mediaquery.of(context).size.wIDth,margin: const EdgeInsets.only(left: 40.0,right: 40.0,top: 10.0),alignment: Alignment.center,decoration: Boxdecoration(              border: border(                bottom: borderSIDe(                    color: colors.redAccent,wIDth: 0.5,style: borderStyle.solID),padding: const EdgeInsets.only(left: 0.0,right: 10.0),child: new Row(              crossAxisAlignment: CrossAxisAlignment.center,mainAxisAlignment: MainAxisAlignment.start,children: <Widget>[                new Expanded(                  child: TextFIEld(                    obscureText: true,textAlign: TextAlign.left,decoration: inputdecoration(                      border: inputborder.none,hintText: '[email protected]',hintStyle: TextStyle(color: colors.grey),divIDer(            height: 24.0,child: new Text(                    "PASSWORD",hintText: '*********',new Row(            mainAxisAlignment: MainAxisAlignment.end,children: <Widget>[              padding(                padding: const EdgeInsets.only(right: 20.0),child: new Flatbutton(                  child: new Text(                    "Forgot Password?",textAlign: TextAlign.end,onpressed: () => {},margin: const EdgeInsets.only(left: 30.0,right: 30.0,top: 20.0),child: new Row(              children: <Widget>[                new Expanded(                  child: new Flatbutton(                    shape: new RoundedRectangleborder(                      borderRadius: new borderRadius.circular(30.0),child: new Container(                      padding: const EdgeInsets.symmetric(                        vertical: 20.0,horizontal: 20.0,child: new Row(                        mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[                          new Expanded(                            child: Text(                              "LOGIN",textAlign: TextAlign.center,style: TextStyle(                                  color: colors.white,FontWeight: FontWeight.bold),child: Row(              children: <Widget>[                new Expanded(                  child: new Container(                    margin: EdgeInsets.all(8.0),decoration: Boxdecoration(border: border.all(wIDth: 0.25)),Text(                  "OR CONNECT WITH",style: TextStyle(                    color: colors.grey,FontWeight: FontWeight.bold,new Expanded(                  child: new Container(                    margin: EdgeInsets.all(8.0),child: new Row(              children: <Widget>[                new Expanded(                  child: new Container(                    margin: EdgeInsets.only(right: 8.0),child: new Row(                      children: <Widget>[                        new Expanded(                          child: new Flatbutton(                            shape: new RoundedRectangleborder(                              borderRadius: new borderRadius.circular(30.0),color: color(0Xff3B5998),child: new Container(                              child: new Row(                                mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[                                  new Expanded(                                    child: new Flatbutton(                                      padding: EdgeInsets.only(                                        top: 20.0,bottom: 20.0,child: new Row(                                        mainAxisAlignment:                                        MainAxisAlignment.spaceEvenly,children: <Widget>[                                          Icon(                                            const IconData(0xea90,FontFamily: 'icomoon'),color: colors.white,size: 15.0,Text(                                            "FACEBOOK",style: TextStyle(                                                color: colors.white,new Expanded(                  child: new Container(                    margin: EdgeInsets.only(left: 8.0),color: color(0Xffdb3236),children: <Widget>[                                          Icon(                                            const IconData(0xea88,Text(                                            "Google",)        ],));  }

有谁知道可能是什么问题?

解决方法 您通常需要在窗口小部件上提供滚动窗口小部件,因为如果您尝试打开键盘或更改手机的方向,则颤动需要知道如何处理窗口小部件的分布.

请查看此资源,您可以检查Flutter提供的不同选项开箱即用,并为您的方案选择最佳选项.

https://flutter.io/widgets/scrolling/

总结

以上是内存溢出为你收集整理的android – 在颤动时底部超载213像素全部内容,希望文章能够帮你解决android – 在颤动时底部超载213像素所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1000509.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-21
下一篇 2022-05-21

发表评论

登录后才能评论

评论列表(0条)

保存