Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expansion Card resizes due to big image #12

Open
leossmith opened this issue Mar 2, 2021 · 1 comment
Open

Expansion Card resizes due to big image #12

leossmith opened this issue Mar 2, 2021 · 1 comment

Comments

@leossmith
Copy link

I am using a big portrait Image for background in the Expansion Card and it looks like that in the collapsed state, it Expands based on the size of the image.

image

this is the expansion card with big image. When I use a Square one, it looks as should:
image

@lecuseasar
Copy link

If you wrap the image you put in the background with the container widget and give the height value, you can solve the problem.

ExpansionCard(

      background: Container(
        height: 400,
        child:Placeholder(),
      ),
    ),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants