RitickSaha / glassmorphism

Glassmorphic UI Package For Flutter || UI ||
https://pub.dev/packages/glassmorphism
Apache License 2.0
66 stars 26 forks source link

Size by inner child #12

Closed olegys closed 1 year ago

olegys commented 3 years ago

Greetings! Can you please tell me how can I make the size of the container to the size of the inner child?

RitickSaha commented 3 years ago

Hi, @olegys

So in order to make the parent widget take the size of the child you will need to make use of GlassmorphicFlexContainer .. And make sure that your child widgets ar also responsive.

You can see this in action in the bottom link from line 170.

https://github.com/RitickSaha/glassmorphism/blob/master/example/lib/main.dart#L170

olegys commented 3 years ago

Hi, @RitickSaha Thanks for the quick response !

ajaygosh102 commented 2 years ago

GlassmorphicFlexContainer does not depend on the child. how can I make the size of the container to the size of the inner child?

RitickSaha commented 2 years ago

GlassmorphicFlexContainer does not depend on the child. how can I make the size of the container to the size of the inner child?

Can you share your simplified snippet? So that I could suggest some changes.

olegys commented 2 years ago

@RitickSaha Hi! Perhaps @ajaygosh102 meant such a decision. When for example the container in the list takes the dimensions of the child.

IMG_20211125_205725

RitickSaha commented 2 years ago

@olegys This is created with GlassmorphicFlexContainer widget right?

olegys commented 2 years ago

@olegys This is created with GlassmorphicFlexContainer widget right?

@RitickSaha Unfortunately no. I tried to use your plugin but I couldn't get it to work like this. I am using regular BackDropFilter.