键盘弹出导致背景

解决方法
resizeToAvoidBottomInset: false,

class LoginState extends State<LoginWeight> {

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return new Scaffold(
   // 添加这行解决
      resizeToAvoidBottomInset: false,
      body: Stack(
        children: <Widget>[
          Image.asset("assets/images/login_bg.png",
            height: double.maxFinite,
            fit: BoxFit.fill,),
          Container(
            alignment: Alignment.topCenter,
            child: Column(
              children: <Widget>[
                Image.asset("assets/images/login_title_icon.png",
                width: 119,
                height: 136,),
                Container(
                  margin:EdgeInsets.only(top: 32),
                  child: LoginParentWidget()
                  ,
                )
              ],
            ),
          )
        ],
      ),
    );
  }
}

 

相关文章:

  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2021-11-07
  • 2021-10-21
  • 2021-07-16
  • 2022-12-23
  • 2021-05-21
猜你喜欢
  • 2022-12-23
  • 2021-04-18
  • 2021-10-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
相关资源
相似解决方案