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, consider building your own using a custom painter.
Note: Banner
is very closely related to CheckedModeBanner
, which shows inside your MaterialApp in debug mode.
For more info, check the official docs:
Happy coding!