Draft
Conversation
Co-authored-by: vicenterusso <80538+vicenterusso@users.noreply.github.com>
Co-authored-by: vicenterusso <80538+vicenterusso@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Support automatic textScale in IconCraft widget
Add automatic text scaling support to IconCraft
Jan 31, 2026
|
@vicenterusso Could you look at this one too please? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
IconCraft currently requires manual
textScaleFactormultiplication on icon sizes, breaking Flutter's accessibility pattern. This adds automatic text scaling whenIconThemeData(applyTextScaling: true)is set.Changes
lib/src/icon_craft.dart: ApplyMediaQuery.textScalerOf(context).scale()wheniconTheme.applyTextScalingis true. Both primary and secondary icons scale proportionally.test/icon_craft_test.dart: Add tests for scaling behavior (1.5x, 2.0x, 1.0x), proportional secondary icon scaling, and backward compatibility.CHANGELOG.md: Document feature in v0.2.0.Usage
Backward compatible:
applyTextScalingdefaults to false/null, preserving existing behavior.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
8.8.8.8REDACTED, pid is -1(packet block)dl-ssl.google.com/usr/bin/wget wget -qO- REDACTED(dns block)esm.ubuntu.com/usr/lib/apt/methods/https /usr/lib/apt/methods/https(dns block)google.com/usr/bin/ping ping -c 1 google.com(dns block)https://storage.googleapis.com/flutter_infra_release/flutter/587c18f873b8ab57330422bce09047420d9c7f42/dart-sdk-linux-x64.zip/usr/bin/curl curl --retry 3 --continue-at - --location --output /opt/flutter/bin/cache/dart-sdk-linux-x64.zip REDACTED(http block)https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.16.8-stable.tar.xz/usr/bin/wget wget -q REDACTED(http block)/usr/bin/curl curl -L -o flutter_stable.tar.xz REDACTED --connect-timeout 30 --max-time 120(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
This pull request was created from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.