79132138

Date: 2024-10-28 05:31:29
Score: 1
Natty:
Report link

Yes, the answer was there, after adding the double.infinity for the width and the height, the image was expanded. the final code I used was like this:

 Expanded(
          child: Image.asset(
            'assets/coffee-beans-bg.jpg',
            width: double.infinity,
            height: double.infinity,
            fit: BoxFit.fill, // Ensures the image fits the full width
          ),
        ),
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: burgauss