您需要在这里使用堆栈小部件来制作相同的东西。这是我的代码。
Widget build(BuildContext context) {
final wi = MediaQuery.of(context).size.width;
return Material(
child: Scaffold(
body: Stack(
children: [
Container(
decoration: BoxDecoration(
image: DecorationImage(
image: NetworkImage(
"https://i.ibb.co/sgjfh62/af8d63a477078732b79ff9d9fc60873f.jpg"),
fit: BoxFit.cover,
),
),
),
Container(
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Image.network("https://i.ibb.co/ZcvF9VF/5.png"),
Text(
"Logo",
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 30),
),
Text(
"Logo",
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 14),
),
SizedBox(
height: 20,
),
Container(
decoration: BoxDecoration(
color: Colors.blueAccent,
borderRadius: BorderRadius.circular(10)),
child: Padding(
padding: EdgeInsets.all(18.0),
child: Text('button'),
),
)
],
),
)
],
)),
);
}