PostHog / PostHog/posthog-flutter

Remove method channel for web

Open
#232 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Dart
Stars
97
Forks
85
Avg merge
1d 8h
Merged PRs (30d)
31

Description

Description

Web code routes through MethodChannel unnecessarily. Ideally, we should be calling purely through PosthogFlutterWeb and drop method channels for dart-to-dart calls.

Should be tested against min Flutter SDK version first

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the PosthogFlutterWeb entry point and the web MethodChannel routing. Check the minimum supported Flutter SDK before changing the call path, then verify that web code uses direct Dart-to-Dart calls without the channel and that the SDK still builds and tests successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
web-dev
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.