Add a dashed stroke option (for centre and hidden lines)
Opened by @akhil-nasim · Assignees: None
Solve & Merge Reward: Up to +210 XP & +60 Coins
+30 XP on PR open · +180 XP & +60 coins on merge
Claim Status & GitHub Signal
Unassigned, with 1 comment. Unassigned does not guarantee unclaimed—read comments and linked PRs first.
Estimated from issue labels (enhancement, good first issue), Dart context, and discussion depth. There are 1 GitHub comments to review for maintainer clarifications. Note: this is an estimate, not a guarantee.
What It's About
Add a dashed stroke option (for centre and hidden lines). Engineering drawings use dashed lines for centre lines and hidden edges. Shapes can currently only be solid. Task: 1. Add bool dashed (default false) to DrawnShape, including copy, copyWith, toJson and fromJson (missing field → false). 2. In DrawingPainter, dr
Why It Matters
Resolving #8 improves reliability and developer experience in akhil-nasim/industrial-drawing.
Expected Outcome
A focused pull request addressing #8 with relevant checks or tests verified locally.
Log in to compare this issue's requirements against your profile skills. Required concepts: Dart, Git & Collaboration, Codebase Reading.
Progressive AI Hints
Hint #1 is always free and calibrated to your experience level. Extra hints unlock with coins without spoiling the full solution.
Skill-Gap Learning
Issue Description
Engineering drawings use dashed lines for centre lines and hidden edges. Shapes can currently only be solid.
Task:
- Add
bool dashed(defaultfalse) toDrawnShape, includingcopy,copyWith,toJsonandfromJson(missing field →false). - In
DrawingPainter, draw dashed paths when it is set —_addDashedLinein the same file already does the dash maths. - In
SvgExporter, emitstroke-dasharray. - Add a test in test/controller_test.dart for the JSON round-trip.
Happy to help in the comments if you pick this up.
Linked Pull Requests (0)
No linked or cross-referenced pull requests detected via GitHub timeline. Check comments below for informal claims before starting.
GitHub Comments (1)
Hi! I'd like to take this issue. I'm a software engineering student working with Flutter — I'll start on the dashed flag for DrawnShape, the painter, and the SVG exporter, plus the JSON round-trip test. Please let me know if that's okay.
Issue Troubleshooting Threads (0)
No troubleshooting threads opened for this issue yet. If you hit a test, build, or navigation blocker, post what you've tried so fellow contributors can help.
PR Verification & Rewards
Sign in and link GitHub to verify your PR against this issue and earn XP + coins.
Contribution Workflow
Track your local progress before opening a pull request on GitHub.
Repository Context
Top Repository Paths
Advisory PR Assistant
Helps structure your PR description or unpack reviewer feedback. Does not perform GitHub actions.