flutter_html icon indicating copy to clipboard operation
flutter_html copied to clipboard

[BUG] cant use Button Tag

Open shubhammemane1 opened this issue 2 years ago • 3 comments

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

shubhammemane1 avatar Sep 25 '23 10:09 shubhammemane1

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

erickok avatar Sep 25 '23 15:09 erickok

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..

shubhammemane1 avatar Sep 26 '23 06:09 shubhammemane1

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

erickok avatar Sep 27 '23 09:09 erickok