我想用白色容器覆盖卡片,但容器总是需要一个高度(否则它不会显示)。我希望它和它的父级堆栈一样大。我怎样才能使这项工作?卡的高度不同。我想我错过了一些东西;)
return new Stack(
children: <Widget>[
new Card( ... ),
new Container(color: Colors.white70),
]
);
我想用白色容器覆盖卡片,但容器总是需要一个高度(否则它不会显示)。我希望它和它的父级堆栈一样大。我怎样才能使这项工作?卡的高度不同。我想我错过了一些东西;)
return new Stack(
children: <Widget>[
new Card( ... ),
new Container(color: Colors.white70),
]
);