美文网首页
2020-01-11

2020-01-11

作者: 伊然凝望 | 来源:发表于2020-05-20 15:26 被阅读0次

    1   Offstage的包裹列表时候溢出问题。

      Offstate 包裹了Column 列表时候,外面得包裹一层 Expand,如果不包裹,就会溢出

       Expanded(

                child: settingMainSelect(),

         ),

    //子widget组件

    Widget settingMainSelect(){

        return !is_tixing ? Container():

        Offstage(

            offstage:false,

            child:

              Column(

                 children:<Widget>[

                    Container(

                      color: Colours.color_f5f5f5,

                      height: 7,

                    ),

                    Container(

                      height: 40,

                      padding: EdgeInsets.only(left: 12, right: 12),

                      alignment: Alignment.centerLeft,

                      child: Text("提示:",style: TextStyle(color: Color(0xff999999), fontSize: 13),),

                      decoration: BoxDecoration(color:Color(0xffF5F5F5),border: Border(bottom: BorderSide(width: 0.5, color: Colours.color_eeeeee),) ),

                    ),

    ]

    )

    )

    }

    相关文章

      网友评论

          本文标题:2020-01-11

          本文链接:https://www.haomeiwen.com/subject/btcbactx.html