Did you know?
You can use the Banner
widget to place a small diagonal banner over a child widget.
Note that Banner
only offers limited customization options. If you need more custom styling, you have two options:
- Build your own using a custom painter.
- Use the super_banners package.
Banner
is very closely related toCheckedModeBanner
, which shows inside yourMaterialApp
in debug mode. For more info, check the official docs: Banner class.
Happy coding!