Flutter Container height same as parent height
You can use a Positioned.fill
to force a stack child to fill Stack
.
Stack(
children: [
Card(),
Positioned.fill(
child: Container(color: Colors.red),
)
]
);
height: double.infinity
It worked for me in case of container