body: controller.homeResponseList!.isEmpty
? const Center(child: CircularProgressIndicator())
: ListView.builder(
scrollDirection: Axis.horizontal,
itemCount: controller.homeResponseList!.length,
itemBuilder: (context, index) => Padding(
padding: const EdgeInsets.all(8.0),
child: GestureDetector(
onTap: () => Navigator.push(
context,
MaterialPageRoute(
builder: (context) => InfoScreen(
url: controller.homeResponseList![index].url!),
),
),
child: Padding(
padding: const EdgeInsets.all(200.0),
child: Row(children: [
Image.network(
controller.homeResponseList![index].urlToImage ??
""),
]),
),
),
)),
As you can see from the photo, my picture is right in the middle of the screen. I want to place it at the top of the screen.