如何制作扩展卡? [英] How to make Expandable card?
本文介绍了如何制作扩展卡?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是新手,要列出这样的卡片清单.
我试图理解原始的项目,但我无法弄清楚. >
我只想制作没有背景gif/视频效果的可扩展卡
谢谢...
解决方案
尝试在Card
内添加ExpansionTile
,这将在您扩展ExpansionTile
Card
Card(
child: Padding(
padding: EdgeInsets.only(
top: 36.0, left: 6.0, right: 6.0, bottom: 6.0),
child: ExpansionTile(
title: Text('Birth of Universe'),
children: <Widget>[
Text('Big Bang'),
Text('Birth of the Sun'),
Text('Earth is Born'),
],
),
),
)
I am new to flutter and I want to make a list of cards like this.
I tried to Understand the original Project but I am not able to figure out.
I just want to make an expandable card without the background gif/video effect
Thanks...
解决方案
try to add an ExpansionTile
inside a Card
, this will expand the Card
when you expand the ExpansionTile
Card(
child: Padding(
padding: EdgeInsets.only(
top: 36.0, left: 6.0, right: 6.0, bottom: 6.0),
child: ExpansionTile(
title: Text('Birth of Universe'),
children: <Widget>[
Text('Big Bang'),
Text('Birth of the Sun'),
Text('Earth is Born'),
],
),
),
)
这篇关于如何制作扩展卡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文