Home > Mobile >  i want to add a row in listview.builder but it goes blank
i want to add a row in listview.builder but it goes blank

Time:07-02

i want to add a row ( list of buttons that do filter the list), i tried wrapping listTile in column, listview.builde in column but it doesn't work. tried wrapping GetBuilder also but it doesn't work. enter image description here My Code :-

        import 'package:flutter/material.dart';
        import 'package:get/get.dart';
        import 'package:quizzy/data_controller.dart';
        import '../models/showQuestion.dart';
    
class AllQuestionBank extends StatefulWidget {
  const AllQuestionBank({Key? key}) : super(key: key);

  @override
  State<AllQuestionBank> createState() => _AllQuestionBankState();
}

class _AllQuestionBankState extends State<AllQuestionBank> {
  final DataController controller = Get.put(DataController());

  @override
  Widget build(BuildContext context) {
    WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
      controller.getQuestionList();
    });
    return Scaffold(
      appBar: AppBar(
        title: const Text(' Question Bank'),
      ),
      body: GetBuilder<DataController>(
        builder: (controller) => controller.QuestionList.isEmpty
            ? const Center(
                child: Text('           
  • Related