Closed netfotechsolutions closed 1 year ago
It seems like your AWS / Docker configuration are using a later version of flutter_html
than you used for development.
Make sure you are using the expected version of flutter_html
. Versions prior to 3.0.0-beta.2 use EdgeInsets
for padding, whereas 3.0.0-beta.2 (and later) use HtmlPaddings
for padding.
Describe the bug:
We are getting following error with Edgeinsets and are not moving forward especially with 3.10.2
Error details,
Target dart2js failed: Exception: lib/modules/activities/views/activity_payment_confirmation.dart:277:38:
891 | Error: The argument type 'EdgeInsets' can't be assigned to the parameter type 'HtmlPaddings?'. 892 | - 'EdgeInsets' is from 'package:flutter/src/painting/edge_insets.dart' ('/usr/local/flutter/packages/flutter/lib/src/painting/edge_insets.dart'). 893 | - 'HtmlPaddings' is from 'package:flutter_html/src/style/padding.dart' ('/root/.pub-cache/hosted/pub.dev/flutter_html-3.0.0-beta.2/lib/src/style/padding.dart'). 894 | padding: const EdgeInsets.all(0))
Target dart2js failed: Exception: lib/modules/activities/views/activity_payment_confirmation.dart:277:38: 891 Error: The argument type 'EdgeInsets' can't be assigned to the parameter type 'HtmlPaddings?'. 892 - 'EdgeInsets' is from 'package:flutter/src/painting/edge_insets.dart' ('/usr/local/flutter/packages/flutter/lib/src/painting/edge_insets.dart'). 893 - 'HtmlPaddings' is from 'package:flutter_html/src/style/padding.dart' ('/root/.pub-cache/hosted/pub.dev/flutter_html-3.0.0-beta.2/lib/src/style/padding.dart'). 894 padding: const EdgeInsets.all(0)) HTML to reproduce the issue:
Html
widget configuration:Expected behavior:
Screenshots:
Device details and Flutter/Dart/
flutter_html
versions:Stacktrace/Logcat
Additional info:
A picture of a cute animal (not mandatory but encouraged)