PostHog / PostHog/posthog-flutter

Surveys: honor appearance.position (currently bottom-only)

Open
#379 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Problem

posthog-react-native 4.43.13 (PostHog/posthog-js#3498) added support for honoring appearance.position on all 9 SurveyPosition values (top_left, top_center, top_right, middle_left, middle_center, middle_right, left, center, right). Survey UI on iOS still renders bottom-only regardless of the configured position.

This means surveys created in the PostHog UI with a custom position will not visually match what users see on iOS, breaking parity with the web SDK and React Native.

Expected behavior

Honor appearance.position in the iOS survey UI, matching the web SDK semantics:

  • top_* → anchored to top edge
  • middle_* → vertical middle
  • left / center / right (no prefix) → anchored to bottom edge

Reference

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 in the Flutter survey UI entry point and trace how appearance.position is currently handled, using the linked React Native implementation and web semantics as references. Done means all nine SurveyPosition values render with the specified top, middle, or bottom anchoring and horizontal alignment on iOS.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
mobile-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.