Question: I am using android studio and building a screen. I am trying to put an image for the background i wrote this code class _LoginScreenState

I am using android studio and building a screen.

I am trying to put an image for the background

i wrote this code

class _LoginScreenState extends State { final _formKey = GlobalKey(); @override Widget build(BuildContext context) { return Form( key: _formKey, child: Container( decoration: const BoxDecoration( image: DecorationImage( image: AssetImage("assets/backgroundImage.png"), fit: BoxFit.cover ) ), // Organize every widget on this screen into a column // This allows us to display everything vertically child: // code for the screen

i got this error Unable to load asset: assets/backgoundImage.png

I added the path to subspe.yml

and copy the correct path and still get the same error

any suggestions?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!