refactor: Enhance the Positioned widget with new constructors#438
refactor: Enhance the Positioned widget with new constructors#438divyanshub024 merged 1 commit intodevfrom
Conversation
📝 WalkthroughWalkthroughThis PR introduces four new convenience constructors to the StacPositioned widget (fromRect, fromRelativeRect, fill, directional), expands documentation to clarify positioning constraints, updates an example to use the new fill constructor, and changes a library import from cupertino to material. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Enhance the Positioned widget with new constructors
Related Issues
Closes #
Type of Change
Summary by CodeRabbit
New Features
fill()for full stack coverage,fromRect()for rect-based positioning,fromRelativeRect()for relative offsets, anddirectional()for text-direction-aware layouts.Documentation
✏️ Tip: You can customize this high-level summary in your review settings.