你需要定义 - right: 1.0, left: 1.0, 也与底部一起 Positioned 。小部件。
right: 1.0, left: 1.0,
Positioned
@override Widget build(BuildContext context) { return Scaffold( body: Column( children: <Widget>[ Stack( children: <Widget>[ Container( height: MediaQuery.of(context).size.height, child: Image.network("https://placeimg.com/640/480/any", fit: BoxFit.cover)), Positioned( bottom: 1.0, right: 1.0, left: 1.0, child: Card( shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(15.0)), child: Padding( padding: const EdgeInsets.all(8.0), child: Text( "A description would be going here, this is just placeholder text.", style: TextStyle(fontSize: 30), ), ), ), ) ], ), ], ), ); }
输出: