Failed assertion: line 1927 pos 12: 'hasSize'
ListView(
shrinkWrap: true,
children: [
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"Upcoming Tournaments",
style: Theme.of(context).textTheme.headline3!,
),
GetX<TournamentListingController>(builder: (controller) {
if (controller.isLoading.value) {
return Container(
child: Text("Loading..."),
);
} else {
return Flexible(
fit: FlexFit.loose,
child: ListView.builder(
shrinkWrap: true,
itemCount: tournamentListingController.tournamentList.length,
itemBuilder: (BuildContext context, int index) {
return TournamentDetailsCard(
tournamentDetails:
tournamentListingController.newList.value[index],
Screen: 'Listing',
);
}),
);
}
}),
],
),
],
)