I'm flutter begginner. I tried to make a listview and make some containers and text widgets. but there's only text widget and don't appear containers that have images. Could you review where's some problems in code below.
class DonatePage extends StatelessWidget {
const DonatePage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
body:
ListView(
scrollDirection: Axis.vertical,
reverse: true,
addAutomaticKeepAlives: false,
children: [
Column(
children: [
Container(
width: double.infinity,
height: 400,
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage("assets/images/components/shop/donate/card2.png")
)
),
),
Text("Campaign of the week"),
Container(
width: double.infinity,
height: 400,
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage("assets/images/components/shop/donate/card1.png")
)
),
),
Text("for good"),
Container(
width: double.infinity,
height: 400,
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage("assets/images/components/shop/donate/card3.png")
)
),
),
]
)
],
),
);
}
}
Problems Screenshots below.




pubspec.yamland a screenshot of your folder structure where you put your images.