I am new here so I apologise in advance for any mistakes that might violate the rules of this platform.
I have a problem with filling my android app with a background image. I've tried to follow this, but I got a rendering exception.
The code, which doesn't use the [SizedBox] class looks like this:
return Scaffold(
appBar: new AppBar(title: Text("Progresso nel edilizia")),
body: SingleChildScrollView(
child: Container(
decoration: const BoxDecoration(
image: DecorationImage(
image: AssetImage('assets/login_background.jpg'),
fit: BoxFit.cover
)
),
child: LoginBody(),
)
),
);
The output: https://ibb.co/0srf6dN