Skip to content

Package crossword game widget for pub.dev - #1

Open
sami-bre wants to merge 1 commit into
masterfrom
cursor/package-crossword-game-widget-for-pub-dev-9aa6
Open

Package crossword game widget for pub.dev#1
sami-bre wants to merge 1 commit into
masterfrom
cursor/package-crossword-game-widget-for-pub-dev-9aa6

Conversation

@sami-bre

@sami-bre sami-bre commented Nov 6, 2025

Copy link
Copy Markdown
Owner

Extracts the crossword game widget into a new Flutter package and updates the main app to use it, including a guide for publishing the package to pub.dev.


Open in Cursor Open in Web


Note

Extracts the crossword widget into a reusable package and updates the app to depend on and use it, adding docs and package metadata.

  • New package: packages/crossword_game_widget
    • Exposes Crossword widget and CrosswordSelectionCallback via lib/crossword_game_widget.dart.
    • Implements core widget in src/crossword.dart and painter in src/crossword_painter.dart with improved repaint logic and pointer safety.
    • Adds package metadata and docs: pubspec.yaml, CHANGELOG.md, README.md, analysis_options.yaml, and PUBLISHING_STEPS.md.
  • App integration
    • Replaces local implementation by removing lib/crossword.dart and lib/crossword_painter.dart.
    • Updates lib/main.dart to import crossword_game_widget and use the new onLineDrawn callback signature.
    • Updates root pubspec.yaml/pubspec.lock to depend on the new path package.

Written by Cursor Bugbot for commit 399c29b. This will update automatically on new commits. Configure here.

Co-authored-by: samibre121 <samibre121@gmail.com>
@cursor

cursor Bot commented Nov 6, 2025

Copy link
Copy Markdown

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@sami-bre
sami-bre marked this pull request as ready for review November 6, 2025 13:22

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

this file should be out of the package folder coz it won't be published due to security risks

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