Answers for "Failed assertion: line 1927 pos 12: 'hasSize'"

0

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',
                              );
                            }),
                      );
                    }
                  }),
                ],
              ),
          ],
        )
Posted by: Guest on January-13-2022

Code answers related to "Failed assertion: line 1927 pos 12: 'hasSize'"

Browse Popular Code Answers by Language