FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
121 stars 18 forks source link

ToggleIcon does not respect layout size #2424

Open tmpsantos opened 7 months ago

tmpsantos commented 7 months ago

Has your issue been reported?

Current Behavior

When you set the icon size of a ToggleIcon, the widget layout looks correct in the editor but not when you deploy.

Expected Behavior

The parent layout box respects the widget size and layout is done accordingly.

Steps to Reproduce

  1. Create a page
  2. Add a Column
  3. Add 2 Image widgets to the Column
  4. Add a ToggleBox
  5. Set the ToggleBox image size to 200

Reproducible from Blank

Bug Report Code (Required)

IT4ohs/lvIpNobhe+KqJccdFmSQ7Qlh7bJJJlcpBby0bfb7wPJkQRfSkP1dUOL2lS2xffE20rzsX/MrqvfzXJ/IDC0ycR6JazrVyFjvjfH+jVpCPDL63b3wlJ+5UN36M3MGnrxFAXbdoW3gk62amI9nLQhLbHu/JNjASRua4XdeK2SrDX1iXc2URm05KZDPz

Context

This seems to be a known issue, I proposed a simple workaround too: https://community.flutterflow.io/widgets-and-design/post/can-we-change-the-toggleicon-dimensions-oObs192FDNCVXeP?highlight=uU95z4yasqBdFvO

Visual documentation

image

Left is the editor, right is runtime.

Additional Info

No response

Environment

- FlutterFlow version: v4.1
- Platform: all?
- Browser name and version: n/a
- Operating system and version affected: Android
hariprasadms commented 7 months ago

Hi @tmpsantos - Thanks for submitting the issue. Using the toggle icon inside a container is the best option to achieve what you are expecting, I hope that can help you. However, I can flag this for technical review to check if this can be considered for enhancements.

github-actions[bot] commented 7 months ago

This issue is stale because it has been open for 7 days with no activity. If there are no further updates, a team member will close the issue.

takashiff commented 6 months ago

Hi @tmpsantos, thanks for the bug report. While it is typically best practice to wrap the toggle icon within a container, I can confirm that this is not the intended behavior. Thanks