79220233

Date: 2024-11-24 14:05:32
Score: 0.5
Natty:
Report link

I would change how you are doing: Here an another way to do:

                 padding: const EdgeInsets.all(10),
                      child:  0 == 0 ? Column(
                        children: [
                          Align(child: Text('Showing all records'), alignment: Alignment.topLeft,),
                          Expanded(
                            child: const Center(
                              child: Text('No Records'),),
                          ),
                        ],
                      )
                          :ListView(
                        controller: controller,
                        children: [
                          Text('Showing all records'),
    
                          Padding(
                            padding: const EdgeInsets.symmetric(horizontal: 10),
                            child: Container()
                          )
                        ],
                      ),
                    )),
              ),

THe result: enter image description here

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alexandre B.