试图添加背景图像的小部件在Flutter应用程序,但我不知道如何添加它.我是新的flutter.So,如果有人知道请帮助找到解决方案.
login.dart:
Widget build(BuildContext context) {
return Scaffold(
body: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.all(20.0),
child: Column(
children: [
const SizedBox(
height: 1,
),
Padding(
padding: const EdgeInsets.all(20.0),
child: Image.asset("images/logo.png"),
),
const SizedBox(height: 10),
TextField(
.........
),
const SizedBox(height: 20),
TextField(
..........
),
const SizedBox(height: 20),
TextField(
..........
)
],
),
),
),
);
}
字符串
2条答案
按热度按时间shyt4zoc1#
使用Container Package SingleChildScrollView并添加装饰
字符串
eqoofvh92#
字符串