首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 >关于列和行的UI摆动

关于列和行的UI摆动
EN

Stack Overflow用户
提问于 2019-09-22 11:43:53
回答 1查看 40关注 0票数 1

我有这样的设计

我尝试在列中添加2行,但得到一个错误。也就是说,它超出了屏幕,否则图表可能无法呈现

这是我的代码

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
body: RefreshIndicator(
          child: Row(
            mainAxisSize: MainAxisSize.max,
            children: <Widget>[
              Expanded(
                child: GestureDetector(
                  child: Container(
                    margin: EdgeInsets.only(bottom: 320),
                    child: chart,
                  ),
                  onTap: (){
                    _showDialog();
                  },
                ),
              ),
              Expanded(
                child: Column(
                  children: <Widget>[
                    RaisedButton(
                      padding: const EdgeInsets.symmetric(vertical: 50, horizontal: 65),
                      textColor: Colors.white,
                      color: Colors.blue,
                      onPressed: (){},
                      child: new Text("LAPOR"),
                    ),
                    RaisedButton(
                      padding: const EdgeInsets.symmetric(vertical: 50, horizontal: 36),
                      textColor: Colors.white,
                      color: Colors.redAccent,
                      onPressed: (){},
                      child: new Text("PENGUMPULAN"),
                    ),
                  ],
                ),
              ),
            ],
          ),
          onRefresh: _showDialog
      )
EN

回答 1

Stack Overflow用户

发布于 2019-09-23 05:21:39

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

https://stackoverflow.com/questions/58048886

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
查看详情【社区公告】 技术创作特训营有奖征文