【问题标题】:How to Make This Layout (flutter)如何制作此布局(颤动)
【发布时间】:2021-10-13 20:54:36
【问题描述】:

所以,我是 Flutter 的新手。我想做类似下图的东西。帮助我一无所知的人*sad.Expected Output

【问题讨论】:

  • 请展示您到目前为止所做的尝试以及您需要具体帮助的地方
  • 我不知道如何将图像、名称、文本等放入框内。抱歉,我不能说得很具体,因为我对此一无所知

标签: flutter dart flutter-layout


【解决方案1】:

你使用 ListTile Widget 试试下面的代码希望对你有帮助

Card(
            child: ListTile(
              leading: Container(
                width: 50.0,
                height: 50.0,
                decoration: BoxDecoration(
                  border: Border.all(color: Colors.black87),
                  image: DecorationImage(
                    image: NetworkImage(
                      'https://www.kindpng.com/picc/m/495-4953926_admin-icon-png-white-clipart-png-download-black.png',
                    ),
                  ),
                  shape: BoxShape.circle,
                ),
              ),
              title: Text('JULE S'),
              subtitle: Text(
                  'Love this product the smell color and everything are just lovely'),
              trailing: Icon(Icons.person),
            ),
          ),

你的屏幕就像

【讨论】:

    猜你喜欢
    • 2019-07-13
    • 2019-05-19
    • 1970-01-01
    • 2014-11-29
    • 1970-01-01
    • 2020-09-04
    • 2020-07-19
    • 2023-04-03
    • 1970-01-01
    相关资源
    最近更新 更多