首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Sign_in flutter的谷歌图标(徽标)

Sign_in flutter的谷歌图标(徽标)
EN

Stack Overflow用户
提问于 2020-08-27 14:46:21
回答 1查看 1.7K关注 0票数 0

我试图添加谷歌的标志登录与谷歌从https://developers.google.com/identity/branding-guidelines下载。但是当我在flutter应用程序中使用它时,一些线条和圆点出现在logo周围。

代码语言:javascript
复制
GestureDetector(
                child: Container(
                          padding: EdgeInsets.only(right: _size.height * 0.016),
                          decoration: BoxDecoration(
                            color: Colors.white,
                            borderRadius: BorderRadius.circular(15.0),
                          ),
                          child: Row(
                            mainAxisAlignment: MainAxisAlignment.center,
                            mainAxisSize: MainAxisSize.min,
                            children: <Widget>[
                              Container(
                                // decoration: BoxDecoration(color: Colors.blue),
                                child: Image.asset(
                                  'assets/images/google_icon/btn_google_light_normal.9.png',
                                  fit: BoxFit.fitWidth,
                                ),
                              ),
                              SizedBox(
                                width: 5.0,
                              ),
                              Text('Sign-in with Google')
                            ],
                          ),
                        ),
                      ), 

这导致了

enter image description here

enter image description here

如何消除G徽标周围的毛刺?

EN

回答 1

Stack Overflow用户

发布于 2020-08-27 15:53:39

我认为您使用的图像格式可能有问题,请试用此代码

代码语言:javascript
复制
Container(
  width:300,
  height:80,
  child: Row(
    mainAxisAlignment: MainAxisAlignment.center,
    mainAxisSize: MainAxisSize.min,
    children: <Widget>[
      Container(
        // decoration: BoxDecoration(color: Colors.blue),
          child:
          Image.network(
              'http://pngimg.com/uploads/google/google_PNG19635.png',
              fit:BoxFit.cover
          )                  
      ),
      SizedBox(
        width: 5.0,
      ),
      Text('Sign-in with Google')
    ],
  ),
)
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63610545

复制
相关文章

相似问题

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