首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >微件不在android中显示,但在ios中显示

微件不在android中显示,但在ios中显示
EN

Stack Overflow用户
提问于 2019-02-10 17:58:25
回答 1查看 50关注 0票数 0

我有一个用flutter编写的页面,当我在iOS上渲染它时,它可以正常显示,但在android上,其中一个小部件不能显示。有人能帮我找出原因吗?

在我看来一切都很正常。

这就是小部件

This is the link to the widget code

这就是我所说的

代码语言:javascript
运行
复制
  Widget build(BuildContext context) {
    return Container(
        decoration: const BoxDecoration(
          image: const DecorationImage(
            fit: BoxFit.fill,
            image: const AssetImage("assets/images/background.png"),
          ),
        ),
        child: SafeArea(
          child: Column(
            children: <Widget>[
              Padding(
                padding: const EdgeInsets.all(100.0),
                child: SizedBox(
                  child: Image.asset("assets/images/logo.png"),
                  height: 120,
                ),
              ),
              Expanded(
                child: Align(
                  alignment: Alignment.bottomRight,
                  child: Padding(
                    padding: const EdgeInsets.fromLTRB(0,0,0,200.0),
                    child: LumiaFab(),
                  ),
                ),
              ),
              Column(
                children: <Widget>[
                  Padding(
                    padding: const EdgeInsets.fromLTRB(0, 0, 0, 80),
                    child: FlatButton(
                      padding: EdgeInsets.fromLTRB(100,10, 100, 10),
                      shape: RoundedRectangleBorder(
                        borderRadius: BorderRadius.all(
                          Radius.circular(10),
                        ),
                      ),
                      color: Colors.white,
                      child: Padding(
                        padding: const EdgeInsets.all(8.0),
                        child: Text(
                          "Login or Sign Up",
                          style: TextStyle(
                            color: Color(0xFF009245),
                            fontSize: 14.0,
                          ),
                        ),
                      ),
                      onPressed: () {},
                    ),
                  ),
                ],
              )
            ],
          ),
        ));

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

https://stackoverflow.com/questions/54615259

复制
相关文章

相似问题

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