I have this piece of code :
return Scaffold(
body: Container(
decoration: ContainerStyles.gradientBoxDecoration,
child: Center(
child: SingleChildScrollView(
physics: const BouncingScrollPhysics(),
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: [
............
I dont get it if i remove the Center Widget it seperates my screen in half and let the other half white(without my container color) ,my guessing is that Center widget by default it takes the full height and width?
It works like Expanded ?
I dont get it how it works , im trying to avoid bugs in the future so im trying to undertand it better.
Any help will be appreciate 🙂