Package selection guidance compiled from public package information, community data, and project usage.
RotatedCornerDecoration is a Flutter package designed to create and apply corner badges with automatic text rotation. It enables developers to easily add decorative corner elements—such as ribbons or badges—to widgets, ensuring text labels are properly oriented even when placed in corners. Ideal for UI enhancements like 'New' or 'Sale' tags, it supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux. The package simplifies the process of aligning text within rotated containers using TextSpan auto-rotation.
Use cases
Adding decorative corner badges
Creating dynamic ribbon labels
Enhancing UI with visual indicators
Displaying status tags in corners
Customizing widget corner decorations
Building promotional banners
Key features
Auto-rotates TextSpans
Supports multiple platforms
Easy integration with existing widgets
Flexible corner positioning
Minimal boilerplate code
Cross-platform compatibility
Suitable for
UI designers seeking visual flair
Developers building e-commerce apps
Teams creating dashboard interfaces
Apps needing status indicators
Projects with custom badge requirements
Considerations
Requires understanding of TextSpan layout
May need fine-tuning for complex layouts
Limited to corner decoration use cases
Not suitable for full-screen overlays
Best used with simple text content
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
Pay attention!
If you need a regular (not rotated) text at the corner of widgets please consider to use Stack with Containers and Text widgets.
This package was developed to provide auto rotation of TextSpans.
Example
Take a look at the provided example application for how to use the CornerDecoration.