79416862

Date: 2025-02-06 05:33:48
Score: 1
Natty:
Report link

Why is This Happening?

Solution

To make the image fill the available space, wrap it with an Expanded widget so it behaves like the Container in ContainerCard:

class ImageCard extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Card(
      child: IntrinsicHeight(
        child: Row(
          children: [
            Expanded( 
              child: Image.network(
                'https://flutter.github.io/assets-for-api-docs/assets/widgets/owl.jpg',
                fit: BoxFit.fill, 
              ),
            ),
            Expanded(
              child: Container(color: Colors.amber, height: 200),
            ),
          ],
        ),
      ),
    );
  }
}

Why This Works

Reasons:
  • RegEx Blacklisted phrase (0.5): Why is This
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why is This
  • Low reputation (1):
Posted by: M.Hassan