Not change background or whole area except statusBar. This problem has occured as your container will only expand to hold whatever it has as a child.
You can use a media query to set the height and width of your container respective of your devices screen size.
The following code should achieve your desired effect:
1 2 3 4 5 6 7 8 9 10 11 12 13 | return Scaffold( backgroundColor: Colors.orange, body: SafeArea( child: SingleChildScrollView( child: Container( color: Colors.blue, height: MediaQuery.of(context).size.height, width: MediaQuery.of(context).size.width, child: Text("TEST TEXT"), ), ), ), ); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.