简体   繁体   English

在实现以下设计时,我遇到了问题

[英]I'm facing problems while achieving the following design in flutter

I'm new to flutter, I just got stuck while clipping and trying to get a specific design from a container. 我是新手扑,我只是在剪辑时陷入困境,并试图从容器中获取特定的设计。 I need your help to achieve following UI, actually need to achieve design. 我需要你的帮助来实现以下UI,实际上需要实现设计。

return Column(
  children: <Widget>[
    SizedBox(height: 120),
    Center(
      child: ClipPath(
        clipper: SignInBoxClipper(),
        child: Container(
          width: 280,
          height: 120,
          decoration: BoxDecoration(
              borderRadius: BorderRadius.all(Radius.circular(6)),
              gradient: RadialGradient(
                colors: [
                  Color.fromRGBO(65, 175, 250, 1),
                  Color.fromRGBO(175, 136, 246, 1),
                ],
                radius: 1.3,
                center: Alignment(-0.9, .5),
              )),
        ),
      ),
    )
  ],
);

上传新图片,此图片不可用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM