Overview
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
