【发布时间】:2022-11-15 23:29:29
【问题描述】:
这是我页面中的代码,但没有显示任何内容:
body: Column(
children: [
Center(
child: Container(
color: Color.fromARGB(255, 234, 237, 245),
child: Expanded(
child: ListView.separated(
separatorBuilder: (context, index) => SizedBox(
height: 2,
),
controller: scrollController,
itemCount: 2,
itemBuilder: (context, index) {
return ListTile(
onTap: () {
Navigator.pushNamed(context, "/seconnecter");
},
title: Text('hello'),
);
},
),
),
),
),
],
),
请告诉我错误在哪里?
我期望拥有的:带有Column 和Row 的页面
我将不胜感激任何帮助。先感谢您!
【问题讨论】: