Skip to content

Fix/toggle dimensions 1636 #1723

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

loveucifer
Copy link

Fixes: #1631

This pull request resolves the issue where the "Invisible mode" toggle switch did not match the Figma design specifications. The standard Flutter Switch widget does not provide the necessary customization options to achieve the required dimensions.
to address this, this PR introduces a new custom widget, FigmaSwitch, which is built from the ground up to precisely match the specified dimensions for both its on and off states.

Changes I made""

New FigmaSwitch Widget: highly-customizable w, highly-customizable switch widget that accurately reflects the Figma design for the "Invisible mode" toggle.

New FigmaSwitchListTile Widget: A ListTile that incorporates the FigmaSwitch for easy integration into settings pages.

Settings Page Integration: The "Invisible mode" setting now uses the new FigmaSwitchListTile to ensure it matches the design.

Testing""

Navigate to the settings page.

See the "Invisible mode" toggle switch.

Verify that its dimensions match the Figma specifications in both the "on" and "off" states.

On: 28px by 48px, with a 10px radius thumb.

Off: 26px by 46px, with a 7px radius thumb.

Confirm that the toggle switch functions correctly, updating the user's presence setting.

Hope this resolves the issue

also attaching before and after screenshots

BEFORE
BEFORE

AFTER
AFTER

This introduces a custom FigmaSwitch widget to precisely match the design specifications for the 'Invisible mode' toggle, resolving the dimension mismatch
@loveucifer loveucifer force-pushed the fix/toggle-dimensions-1636 branch 8 times, most recently from b4f33cf to aa97842 Compare July 20, 2025 06:11
@loveucifer loveucifer force-pushed the fix/toggle-dimensions-1636 branch from aa97842 to 5e2b6ee Compare July 20, 2025 06:44
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.

1 participant