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

super_banner not rendering on correct object #2

Open
gwsingo opened this issue Mar 26, 2024 · 0 comments
Open

super_banner not rendering on correct object #2

gwsingo opened this issue Mar 26, 2024 · 0 comments

Comments

@gwsingo
Copy link

gwsingo commented Mar 26, 2024

Greetings, and thank you for your package.

This package has potential but unfortunately I can't get it to render on the correct widget.

I have a container which then has multiple nested rows & columns, but wherever I place the super_banner it doesn't correctly adhere to the correct widgets bounds and pushes other widgets around messing up my UI.

As a suggestion, take at look at the flutter 'glass' package. Looks like it implements a widget extension that then has a reference on the correct object you want to render to...for example this would be quite literally super:

Container( Center( child: Text("super banners are great") ) ).CornerBanner( elevation: 5, bannerPosition: CornerBannerPosition.topLeft, bannerColor: borderColor, child: Text( "super", style: const TextStyle( fontSize: 9, color: Colors.white, fontWeight: FontWeight.bold), ), ),

Thanks for your time!!

Cheers,
Grant

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

1 participant