Open Jhalakupadhyay opened 1 week ago
This PR updates the badge drawing functionality by implementing dynamic cell sizing and improving the UI layout. The changes focus on enhancing the visual representation of the badge grid and removing unused utility functions.
classDiagram
class DrawBadgePaint {
+List<List<bool>> grid
+void paint(Canvas canvas, Size size)
}
note for DrawBadgePaint "Updated to include dynamic cell sizing and padding adjustments"
DrawBadgePaint : +double cellWidth
DrawBadgePaint : +double cellHeight
DrawBadgePaint : +double pathOffsetX1
DrawBadgePaint : +double pathOffsetX2
DrawBadgePaint : +double pathOffsetX3
DrawBadgePaint : +int paddedRows
DrawBadgePaint : +int paddedCols
Change | Details | Files |
---|---|---|
Refactored the badge drawing canvas to support dynamic cell sizing and improved padding |
|
lib/virtualbadge/view/draw_badge_paint.dart |
Updated the draw badge screen layout and dimensions |
|
lib/view/draw_badge_screen.dart |
Removed unused byte array utility functions |
|
lib/bademagic_module/utils/byte_array_utils.dart |
Code cleanup |
|
lib/view/about_us_screen.dart |
1095
Summary by Sourcery
Enhance the draw badge feature by implementing dynamic cell sizes in the custom paint and adjusting the UI padding for better layout. Remove unused utility functions to streamline the codebase.
Enhancements:
Chores: