Skip to content

Conversation

@anilcancakir
Copy link
Collaborator

No description provided.

- Introduced `hide` / `show` display utilities with `DisplayParser`
- Updated `WFlexible`, `WFlex`, `WContainer`, `WText`, and `WCard` to respect display rules
- Added debug logging via `hasDebugClassName`
- Improved `WFlexible` to handle null child using `Spacer`
- Simplified `WGap` by replacing custom RenderObject with `SizedBox`
- Adjusted shadow alpha for consistency
- Added example route `/layouts/display`
@anilcancakir anilcancakir requested a review from Copilot June 9, 2025 12:41
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR releases version v0.0.3 with new display utilities, refined layout parsers, and various debugging improvements. Key changes include:

  • Introduction of display control via new utility classes (e.g., hide, show).
  • Debug logging improvements across widget components.
  • Refactoring of various parsers (padding, flex, alignment, border) and a simplified gap widget.

Reviewed Changes

Copilot reviewed 23 out of 23 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
lib/src/parsers/shadow_parser.dart Updated BoxShadow color alpha for improved consistency.
lib/src/parsers/padding_parser.dart Refactored regular expressions formatting and widget handling for zero padding, but the duplicate applyGeometry definitions need review.
lib/src/parsers/flex_parser.dart Adjustments in flex widget behavior, returning FlexFit.tight based on parsed flex.
lib/src/parsers/display_parser.dart Changed logic to use regex for hide/show and updated examples.
lib/src/parsers/border_parser.dart Added helper methods for border radius and color parsing.
lib/src/parsers/background_color_parser.dart Updated helper import with no functional changes.
lib/src/parsers/alignment_parser.dart Added text alignment mapping and helper methods.
lib/src/contracts/printable_widget.dart Removed deprecated interface.
lib/src/components/wtext.dart Integrated DisplayParser for hiding and improved widget composition.
lib/src/components/wgap.dart Replaced custom RenderObject with a simpler SizedBox implementation.
lib/src/components/wflexible.dart Child now nullable; returns Spacer if no child provided.
lib/src/components/wflex_container.dart Added debugging and display hide handling.
lib/src/components/wflex.dart Debug logging improvements and display handling added.
lib/src/components/wcontainer.dart Integrated ClipRRect wrapping based on borderRadius and display checks.
lib/src/components/wcard.dart Added display handling and debug logging.
example/lib/pages/layout/display.dart New example page demonstrating display utilities.
example/lib/pages/example/product_grid.dart New example page for a product grid layout using the updated components.
example/lib/demo.dart Updated to include routes for new layout and example pages.
README.md and CHANGELOG.md Updated version references and changelog details.

@anilcancakir anilcancakir merged commit 160acfa into master Jun 9, 2025
anilcancakir added a commit that referenced this pull request Dec 25, 2025
feat: implement z-index parsing for `z-` utility classes
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.

2 participants