Skip to content

Add an example app - #23

Merged
PiotrRogulski merged 2 commits into
masterfrom
claude/pub-missing-example-x2arpu
Jul 26, 2026
Merged

Add an example app#23
PiotrRogulski merged 2 commits into
masterfrom
claude/pub-missing-example-x2arpu

Conversation

@PiotrRogulski

Copy link
Copy Markdown
Member

pub.dev docks 10 points for a missing example. Add a minimal Flutter app
under example/ demonstrating the listener setup, print strategies, custom
data and logging from a cubit-like class.

Also analyze the example on CI and bump the version so the example ships
with the next release.

Co-Authored-By: Claude Opus 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01XYcNPtYk6ZrQEu9uGHqjq2

claude added 2 commits July 26, 2026 09:34
pub.dev docks 10 points for a missing example. Add a minimal Flutter app
under example/ demonstrating the listener setup, print strategies, custom
data and logging from a cubit-like class.

Also analyze the example on CI and bump the version so the example ships
with the next release.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XYcNPtYk6ZrQEu9uGHqjq2
Drop the dart-define app key, the fabricated cubit and its thrown error,
and the top-level listener. The listener is now passed down through the
widget tree and the only error handling left wraps a real call.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XYcNPtYk6ZrQEu9uGHqjq2
Comment thread example/pubspec.yaml
path: ../

dev_dependencies:
leancode_lint: '>=2.1.0 <2.2.0'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

2? Not 25? 🤔

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

That's the constraint used by the main package as well; upgrading lints will also force us to change SDK constraints and other stuff – for later 😛

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

😱

@PiotrRogulski
PiotrRogulski merged commit a08d756 into master Jul 26, 2026
3 checks passed
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.

3 participants