Sub6Resources / flutter_html

A Flutter widget for rendering static html as Flutter widgets (Will render over 80 different html tags!)
https://pub.dev/packages/flutter_html
MIT License
1.75k stars 805 forks source link

[BUG] cant use Button Tag #1378

Open shubhammemane1 opened 7 months ago

shubhammemane1 commented 7 months ago

i am getting button tag from my api i cant use it while styling i disapper else i have to pass it in A tag which make my ui Ugly

this UI i Need image

this i get with anchor tag image

erickok commented 7 months ago

Did you apply any styling at all? Perhaps via applying css and converging that to the flutter_html styles needed?

shubhammemane1 commented 7 months ago

yes i have applied styles but then that component is not visible

"button": Style( color: AppColors.WHITE, backgroundColor: AppColors.BLUE, textDecorationStyle: TextDecorationStyle.solid, textDecoration: TextDecoration.none, display: Display.block, textDecorationColor: AppColors.PERM_ASSIST_PRIMARY_COLOR, // listStyleType: , border: Border.all( color: AppColors.INSPECT_ASSIST_PRIMARY_COLOR, width: 5, style: BorderStyle.solid, )),

this is style i have applied but didn't work..

erickok commented 7 months ago

If your html uses a tags, then you should apply the styling to a as well.