首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >飞镖熊写作

飞镖熊写作
EN

Stack Overflow用户
提问于 2022-02-19 16:39:25
回答 1查看 20关注 0票数 1

我放了一个这样的职位。当案文不符合时,它就不应该在底线上通过。

代码:

代码语言:javascript
运行
复制
body: Container(
        
        padding: EdgeInsets.all(10),
        child: Container(
          height: 150,
          decoration: BoxDecoration(
            color: Colors.black 
          ),

        padding: EdgeInsets.all(10),
        child: Container(
          height: 180,
          decoration: BoxDecoration(
            border: Border.all(color: Colors.white, width: 2),
          ),

          child: Row(
            
            children: [
              Padding(
                padding: EdgeInsets.all(10),
                child: Column(
                  crossAxisAlignment: CrossAxisAlignment.start,
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: [
                    Text("Soru sor, kazan", style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold, color: Colors.white),),
                    Text("SorSor! uygulaması ile soru sor, para kazan! Tek amacın yaşadığın sorunları soru olarak açmak ve diğer kullanıcıların sorularını yanıtlamak.", style: TextStyle(fontSize: 16, color: Colors.white),),
                  ],
                ),
              ),
            ],
          ),
        ),
      )
      )  

我想在没有空间的情况下把它转到底线。我该怎么做呢?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-02-19 16:45:25

只需删除您在Row上拥有的Padding小部件,问题就会消失。

代码语言:javascript
运行
复制
               Container(
                  height: 180,
                  decoration: BoxDecoration(
                    border: Border.all(color: Colors.white, width: 2),
                  ),
                  child: Padding(
                    padding: EdgeInsets.all(10),
                    child: Column(
                      crossAxisAlignment: CrossAxisAlignment.start,
                      mainAxisAlignment: MainAxisAlignment.center,
                      children: [
                        Text(
                          "Soru sor, kazan",
                          style: TextStyle(
                              fontSize: 20,
                              fontWeight: FontWeight.bold,
                              color: Colors.white),
                        ),
                        Text(
                          "SorSor! uygulaması ile soru sor, para kazan! Tek amacın yaşadığın sorunları soru olarak açmak ve diğer kullanıcıların sorularını yanıtlamak.",
                          style: TextStyle(fontSize: 16, color: Colors.white),
                        ),
                      ],
                    ),
                  ),
                ),

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71186980

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档