-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
Does not work with Flutter Web --web-renderer = html (default for mobile) #86
Comments
I have this exact issue as well. |
please stable version.. after the flutter event |
Same problem. |
This is caused by flutter/flutter#65940. auto_size_text checks |
Could this be the reason that debugging in desktop chrome and changing to a smartphone aspect ratio resizes the text, but on a smartphone itself it doesn't? Is there any workaround for this? |
I'm facing the same issue, on desktop is all fine but when I compile and run on the smartphone it doesn't work |
I have this exact issue as well. |
Same here. |
same here |
A little hack if you have to deploy your web app (not a fix):
It will force the web renderer to 'canvaskit'. |
You can actually just |
@doppio I had to launch a little website on Firebase Hosting and doing just |
still same. In Flutter Web doesnt work properly |
There's nothing the author of this package can do until flutter/flutter#65940 is resolved, please thumbs-up that issue instead of "same here" comments so it gets prioritized by the Flutter team. 🙂 |
hello everyone, |
Just installed 2.10.4, doesn't seem to work with the html renderer for me. |
Sorry I am using --web-renderer canvaskit. I don't know what happened to me that day |
Any update on this? The problem is still there... |
Create a simple app with AutoSizeText:
Widget build(BuildContext context) {
return Container(
// color: Colors.red,
// child: const Center(child: Text("Reports")),
child: Center(
child: Container(
width: 60,
decoration: BoxDecoration(border: Border.all()),
child: const AutoSizeText("Sample long text", minFontSize: 5, maxLines: 1),
)));
}
Run with:
flutter -d chrome --web-renderer html
Note: the text does not resize correctly.
If you run with --web-renderer canvasKit (the default for desktop) the text resizes correctly.
Flutter (Channel beta, 1.26.0-17.3.pre, on macOS 11.2.1 20D74 darwin-arm, locale en-GB)
• Flutter version 1.26.0-17.3.pre
• Framework revision 4b50ca7f7f (11 days ago)
• Engine revision 2c527d6c7e
• Dart version 2.12.0 (build 2.12.0-259.8.beta)
auto_size_text: ^2.1.0 (also tried 3.0.0-nullsafety.0 - same problem)
Reproducible on Chrome version 88.0.4324.150 (Official Build) (x86_64 translated)
Also has same problem on iPhone Safari browser (iOS 14.3)
The text was updated successfully, but these errors were encountered: