spaceListUI method
dynamic
spaceListUI( - dynamic context,
- List<String> spaceList
)
Implementation
Widget spaceListUI(BuildContext context, List<String> spaceList) {
return Column(
children: [
Text(
L10n.of(context).parentSpaces,
style: Theme.of(context).textTheme.titleMedium,
),
const SizedBox(height: 10),
Expanded(
child: ListView.builder(
shrinkWrap: true,
itemCount: spaceList.length,
itemBuilder: (context, index) {
final roomId = spaceList[index];
return RoomCard(
key: Key('limited-space-list-item-$roomId'),
roomId: roomId,
showParents: true,
);
},
),
),
],
);
}