Skip to content

chore: update Flutter PopScope callback#446

Merged
marandaneto merged 3 commits into
mainfrom
chore/update-flutter-pop-scope
Jun 23, 2026
Merged

chore: update Flutter PopScope callback#446
marandaneto merged 3 commits into
mainfrom
chore/update-flutter-pop-scope

Conversation

@marandaneto

@marandaneto marandaneto commented Jun 23, 2026

Copy link
Copy Markdown
Member

💡 Motivation and Context

Flutter 3.27 is now the minimum supported version, so survey UI code can use the newer PopScope callback instead of the deprecated API. This also removes a couple of stale TODO comments.

💚 How did you test it?

  • make checkApiDart
  • cd posthog_flutter && dart analyze lib/posthog_flutter_web.dart lib/src/posthog_config.dart lib/src/surveys/widgets/survey_bottom_sheet.dart

📝 Checklist

  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • I updated the docs if needed.
  • No breaking change or entry added to the changelog.

If releasing new changes

  • Ran pnpm changeset to generate a changeset file

🤖 Agent context

Autonomy: Human-driven (agent-assisted)

Updated the survey bottom sheet to use onPopInvokedWithResult, which is available with the current Flutter minimum, and removed stale TODO notes in the changed files. The branch was merged with the latest main; the public API snapshot conflict was resolved by keeping main's version-independent snapshot format.

@marandaneto marandaneto self-assigned this Jun 23, 2026
@marandaneto marandaneto marked this pull request as ready for review June 23, 2026 08:22
@marandaneto marandaneto requested a review from a team as a code owner June 23, 2026 08:22
@greptile-apps

greptile-apps Bot commented Jun 23, 2026

Copy link
Copy Markdown

Reviews (1): Last reviewed commit: "chore: update Flutter PopScope callback" | Re-trigger Greptile

@ioannisj ioannisj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LG!

…pop-scope

# Conflicts:
#	api/posthog_flutter.api.json
@marandaneto marandaneto enabled auto-merge (squash) June 23, 2026 10:34
@marandaneto marandaneto merged commit b2f7896 into main Jun 23, 2026
26 checks passed
@marandaneto marandaneto deleted the chore/update-flutter-pop-scope branch June 23, 2026 10:34
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