Open ernestrlee opened 3 years ago
Hi @ernestrlee Can you please provide a minimal complete reproducible code sample instead of deployed app? Thank you
Hello Taha,
Sure, I'll attach minimal code here. lib.zip
After looking at the issue, it may have something to do with the rich text or widget spans. It is also causing issues with swipe to delete on browsers. I'm not sure why it works on desktop browser, iOS, and Android, but it does not work mobile browser. I deployed to firebase and also got the same issue.
Thanks!
Hi @ernestrlee
Thanks for the code sample, I can see text rendering issue when using you code sample on the mobile web from stable
to dev
channels, only master
works. Is it the same issue as yours?
but I am not sure what the exact issue you're describing here, can you please explain the issue in detail
After looking at the issue, it may have something to do with the rich text or widget spans. It is also causing issues with swipe to delete on browsers.
Here I deployed and tested on Chrome on Android and iOS The text doesn't render properly, only shows when tapping in the area
stable
https://gracious-panini-5a8551.netlify.app/
beta
https://admiring-dijkstra-d0036f.netlify.app/
dev
https://romantic-bohr-9570fd.netlify.app/#/
master
https://distracted-fermat-30f9ab.netlify.app/
Thank you
Hello Taha,
Thanks for looking into this.
I have tried the above links and they have the same issues. It works for desktop Chrome, but not mobile Chrome.
This is how the code is supposed to work:
Please try opening this in a desktop with Chrome browser to see if it works. Then try a mobile device and see that it does not work. This may suggest there is something in the Flutter framework for the web portion may not be handling this properly since it is inconsistent between devices.
Thanks,
Ernest
Hi @ernestrlee Thanks for the explanation, did you try the master link from https://github.com/flutter/flutter/issues/79087#issuecomment-809191675, i can see same behavior when using master on chrome on android or iOS as on desktop
stable |
master |
---|---|
Can you please confirm you get the same result? Thank you
Hello Taha,
Thanks for confirming that there seems to be an issue on some of the channels. I have tried the master channel and the rich text seems to appear fine. However, there are two additional issues that I notice.
1) When I swipe to delete, there are issues when I don't delete the item. The red highlight background sometimes appears over the other items when you partially drag but do not delete. Try dragging partially from top to bottom without deleting.
2) The other item I noticed when I focus on an edit text is that my onscreen keyboard on iOS Chrome browser does not popup, so I can't type anything. This onscreen keyboard issue appears for iPad and iPhone, but looks okay for my Android device.
Thanks,
Ernest
Hi @ernestrlee Thanks for the confirmation!
I can reproduce the issue only Android
preview |
---|
When you tap to transform text, the keyboard isn't opened but if you double-tap, the on-screen keyboard appears, it's not just chrome but also on Safari. Can you confirm this behavior?
preview |
---|
Also, I just arranged all your classes into a runnable code sample for anyone fixing this issue
Hello Taha,
Thanks for confirming the issues. On the drag to dismiss/delete, the behavior is even more confusing if you go from one item to the next. The entire list becomes red for the items that were dragged previously.
As for the double tap, I tried on my iOS device and confirmed that the keyboard does pop up after a double tap. This may suggest that there may be something wrong with the autofocus, since the keyboard should pop up upon focus.
Thanks again for your assistance in looking into this.
Ernest Lee
Hi @ernestrlee Let's summarise the issue since there is a lot going on. These could be different issues or the same, I am not sure
Note: If you don't specify --web-renderer
when building app flutter build web
, mobile web is rendered in html
and canvaskit
on desktop. If you explicitly provide web renderer, you will see some results on desktop and mobile flutter build web --web-renderer html
So when building for mobile and desktop in html
, code isn't properly rendered from stable
to dev
channels, the page looks blank but it's not, you can see debug banner and editable text is visible when you tap in the area
This issue only reproduced from stable
to dev
, text is rendering fine on master
channel
Refer to https://github.com/flutter/flutter/issues/79087#issuecomment-809191675
Renders on both desktop and mobile as expected on all channels
Which makes this issue only related html
renderer
Dismissible
When dragging Dismissible
on Android (I haven't noticed this issue on iOS), we get red lines, sometimes multiple red lines
red highlight background sometimes appears over the other items when you partially drag but do not delete. Try dragging partially from top to bottom without deleting.
I wasn't able to verify this Please provide steps to reproduce this if possible
Code sample has two states when entering the editable state, the cursor is visible but the keyboard doesn't pop up until double-tap on iOS
Let me know if this summary is satisfying to you
Hello Taha,
Thank you for putting together the summary. This looks correct, except for the description for the dismissible bug. It also is seen on my Android device. When I drag left, but not all the way, and I move to the next item in the list, and drag but not all the way, the items that were previously dragged all turn red at the same time. You can see this when you do it to each of the items in the list. Try dragging on each item in the list.
Thanks,
Ernest
Hi @ernestrlee Thanks for the confirmation, I'm unable to reproduce the "all turn red" issue on a physical device or emulator
https://github.com/flutter/flutter/issues/79087#issuecomment-810842779
https://github.com/flutter/flutter/issues/79087#issuecomment-811727143
Hello Taha,
The below clip is what I am seeing. This happens on all devices I have tested, including emulator.
Thanks,
Ernest
@ernestrlee Ah, I can finally also reproduce that, thanks for the video
Steps to Reproduce
flutter create bug
.Expected results: The web app should work consistently and should not depend on what the device/browser is.
Actual results: The app was crashing at certain points in the app and was not displaying text correctly in other areas. Example, in the recipe converter, text was not displayed for mobile devices. In the recipe converter, the app was crashing after attempting to convert the recipe. This worked fine on desktop web and in development for Android/iOS mobile devices. This does not work for mobile accessing the web app.
Logs
N/A N/A ``` [√] Flutter (Channel stable, 2.0.3, on Microsoft Windows [Version 10.0.19042.867], locale en-US) • Flutter version 2.0.3 at C:\src\flutter • Framework revision 4d7946a68d (7 days ago), 2021-03-18 17:24:33 -0700 • Engine revision 3459eb2436 • Dart version 2.12.2 [√] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at C:\Users\MKC\AppData\Local\Android\sdk • Platform android-30, build-tools 30.0.3 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01) • All Android licenses accepted. [√] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe [√] Android Studio (version 4.1.0) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01) [√] VS Code (version 1.54.3) • VS Code at C:\Users\MKC\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.20.0 [√] Connected device (2 available) • Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.90 • Edge (web) • edge • web-javascript • Microsoft Edge 89.0.774.57 • No issues found! ```