Did you know?

You can use the Banner widget to place a small diagonal banner over a child widget.

The Banner 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 to CheckedModeBanner, which shows inside your MaterialApp in debug mode. For more info, check the official docs: Banner class.

Happy coding!