text-align: center not working in table elements with border-collapse
Steps to Reproduce
HTML
| Welcome | This is the second cell | Here is the third cell |
| Another sentence in the first cell | Second row, second cell | Text in the third cell of row 2 |
| Last row | Cell | Final cell in the table |
`HtmlWidget` configuration
HtmlWidget( html, );
Tesing environment
[√] Flutter (Channel stable, 3.29.1, on Microsoft Windows [Version 10.0.19045.4170], locale en-US) [442ms] • Flutter version 3.29.1 on channel stable at D:\Flutter\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 09de023485 (6 weeks ago), 2025-02-28 13:44:05 -0800 • Engine revision 871f65ac1b • Dart version 3.7.0 • DevTools version 2.42.2 [√] Windows Version (10 Enterprise 64-bit, 22H2, 2009) [2.0s] [√] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [3.7s] • Android SDK at C:\Users\XTREME\AppData\Local\Android\sdk • Platform android-35, build-tools 35.0.0 • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java This is the JDK bundled with the latest Android Studio installation on this machine. To manually set the JDK path, use: flutter config --jdk-dir="path/to/jdk". • Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874) • All Android licenses accepted. [√] Android Studio (version 2023.2) [34ms] • 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 17.0.9+0--11185874) [√] Connected device (1 available) [495ms] • 22120RN86G (mobile) • 65x4ivs4u8aimfqs • android-arm64 • Android 14 (API 34) [√] Network resources [594ms] • All expected network resources are available. • No issues found!
Expected results
Actual results
[email protected] has been released with the fix for this. Please upgrade and let me know whether it works for you.
[email protected]has been released with the fix for this. Please upgrade and let me know whether it works for you.
D:\Flutter\flutter\bin\flutter.bat --no-color pub get
Resolving dependencies...
The current Flutter SDK version is 3.29.1.
Because App depends on flutter_widget_from_html >=0.17.0 which requires Flutter SDK version >=3.32.0, version solving failed.
You can try one of the following suggestions to make the pubspec resolve:
* Try using the Flutter SDK version: 3.32.6.
* Consider downgrading your constraint on flutter_widget_from_html: flutter pub add flutter_widget_from_html:^0.16.0
Failed to update packages.
Process finished with exit code 1
My flutter version is 3.29.1. Currently, I cannot upgrade
That's true. I guess it's possible to release another patch release for 3.29.
That's true. I guess it's possible to release another patch release for 3.29.
Yes, because many won't be able to upgrade to 0.17.0 as 3.32.0 is new and apps are already live on production with previous versions for flutter. Same for me.
When can we expect the patch to be released for this issue for version flutter version 3.29 , as application is live on playstore.
https://pub.dev/packages/flutter_widget_from_html/versions/0.16.1 has been released for this. Please try upgrading.
https://pub.dev/packages/flutter_widget_from_html/versions/0.16.1 has been released for this. Please try upgrading.
I tried, but text-align: center not working