Closed Jhalakupadhyay closed 1 week ago
The changes update the DrawBadgePaint class to make the badge UI consistent across different screen sizes by introducing screen-width-dependent path offsets and adjusting the rotation angle.
classDiagram
class DrawBadgePaint {
List~List~bool~~ grid
Color color
draw(Canvas canvas, Size size)
}
note for DrawBadgePaint "Updated to include screen-width-dependent path offsets and adjusted rotation angle."
DrawBadgePaint : +double pathOffsetX1
DrawBadgePaint : +double pathOffsetX2
DrawBadgePaint : +double pathOffsetX3
DrawBadgePaint : +const double radians = math.pi / 3
Change | Details | Files |
---|---|---|
Introduced screen-width-dependent path offsets for responsive cell sizing |
|
lib/virtualbadge/view/draw_badge_paint.dart |
Modified badge rotation angle |
|
lib/virtualbadge/view/draw_badge_paint.dart |
1095
I have added the screen Utils property for the width of the screen this will handle the cells size as per the screen size and the draw badge screen UI will remain same for each screen sizes.
Summary by Sourcery
Enhancements: