0
 SingleChildScrollView(
        child: Container(
          height: MediaQuery.of(context).size.height,
          width: MediaQuery.of(context).size.width,
          //height: 270.0,
          padding: const EdgeInsets.all(25),
          color: const Color.fromARGB(255, 215, 184, 221),
          child: Column(
           
            children: [
              
            ],
          ),
        ),
      ),

I added

crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceEvenly,

But the problem is still there. I also tried Expanded but the exception is still there. Thank you so much

1 Answers1

0

try to warp your SingleChildScrollView widget inside Expanded widget and remove container height

Expanded(
  child: SingleChildScrollView(
    child: Container(
        width: MediaQuery.of(context).size.width,
        padding: const EdgeInsets.all(25),
        color: const Color.fromARGB(255, 215, 184, 221),
        child: Column(
          children: [],
        ),
    ),
  ),
),
Nazarudin
  • 917
  • 8
  • 26