我对颤动很陌生,我不明白如何从这个单个子滚动视图中的 firestore 获取数据这是我使用的代码:
SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: Row(children: [
SizedBox(width: 20),
appointmentCard(
'https://randomuser.me/api/portraits/women/3.jpg',
"Dr. Emerson Dias",
"Consultant",
"26th October, 2021",
"04:30 PM"),
appointmentCard(
'https://randomuser.me/api/portraits/women/11.jpg',
"Dr. Ana Bob",
"Consultant",
"04th October, 2021",
"04:00 PM"),
appointmentCard(
'https://randomuser.me/api/portraits/women/10.jpg',
"Dr. June Martanez",
"Consultant",
"14th October, 2021",
"08:30 AM"),
appointmentCard(
'https://randomuser.me/api/portraits/women/9.jpg',
"Dr. Julia Jew",
"Consultant",
"21th October, 2021",
"04:30 PM"),
]))),```
This is how the app and firestore looks: https://imgur.com/a/umEuRac .