No errors in the code and as far as I can see the pubspec.yaml file is functional, as it worked before.
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SafeArea(
child: Column(
children: [
Card(
child: Image.asset('anyaparent.jpeg'),
),
],
),
),
),
);
CodePudding user response:
try doing like this
Image.asset('images/anyaparent.jpeg'),


![[1]: https://i.stack.imgur.com/GeTW2.png](https://img.codepudding.com/202208/8ae2dcf68f814fed9b2292d2326c98d5.png)
