Skip to content

Conversation

@berhili098
Copy link

This pull request includes several important changes to improve the functionality and maintainability of the codebase. The changes range from updates to dependencies to refinements in custom painting logic and widget layout handling.

Dependency update:

  • example/pubspec.yaml: Added flutter_lints version ^3.0.1 to dev_dependencies to ensure code quality and standardization.

Custom painting logic:

  • lib/src/custom_border_paint.dart: Modified the shouldRepaint method in CustomBorderPaint to compare thickness, radius, and gradient properties for determining if a repaint is necessary.

Widget layout handling:

  • lib/src/row_to_column.dart: Refactored the build method in RowToColumn to improve readability and maintainability by introducing a local variable isRow and a final layout widget.

Utility method improvement:

  • lib/src/utils.dart: Added assertions and refined the logic in the calculateWidth method to handle customWidths more robustly and ensure valid inputs.

berhili098 and others added 3 commits January 20, 2025 17:16
- Added `flutter_lints` dependency to `pubspec.yaml` for better code quality checks.
- Enhanced `shouldRepaint` method in `CustomBorderPaint` to consider thickness, radius, and gradient changes.
- Refactored `RowToColumn` widget to simplify layout logic and ensure proper alignment defaults.
- Added assertions in `Utils` class to validate input parameters for better error handling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant