简体   繁体   English

我如何在 flutter 中进行高级 UI 设计

[英]How can i make advanced UI design in flutter

Can anyone tell me how I can make UI like this image.谁能告诉我如何制作像这张图片一样的 UI。 I am especially interested in body parts.我对身体部位特别感兴趣。 hope you understand the question.希望你理解这个问题。 your help will be very appreciated.您的帮助将不胜感激。

在此处输入图像描述

You can try this:你可以试试这个:

Container(
    width: double.infinity,
    height: 100,
    child: Row(
      children: <Widget>[
        Expanded(
          flex: 1,
          child: Card(
            elevation: 15,
            child: Stack(
              children: <Widget>[
                Positioned(
                  top: 10,
                  left: 10,
                  child: Icon(Icons.cancel),
                ),
                Positioned(
                  top: 10,
                  right: 10,
                  child: Icon(Icons.print),
                ),
              ],
            ),
          ),
        ),
        Expanded(
          flex: 1,
          child: Card(
            elevation: 15,
            child: Stack(
              children: <Widget>[
                Positioned(
                  top: 10,
                  left: 10,
                  child: Icon(Icons.cancel),
                ),
                Positioned(
                  top: 10,
                  right: 10,
                  child: Icon(Icons.print),
                ),
              ],
            ),
          ),
        ),
      ],
    ),
  ),

Put it into body and you can customize the Icon with other widget like Switcher,...将其放入正文中,您可以使用 Switcher 等其他小部件自定义图标,...

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

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